Skip to content

Commit

Permalink
feat: add a11y-dashboard project to workspace, #460
Browse files Browse the repository at this point in the history
  • Loading branch information
luifr10 committed Dec 15, 2024
1 parent 1202a0a commit 5051848
Show file tree
Hide file tree
Showing 96 changed files with 47,044 additions and 28,453 deletions.
1 change: 1 addition & 0 deletions .github/actions/nx-run-many/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ runs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/actions/nx-test-web-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ runs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Download build artifact
uses: actions/download-artifact@v4
with:
Expand Down
59 changes: 49 additions & 10 deletions .github/workflows/uuv-github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
checks: write

env:
NODE_VERSION: 20.8.1
NODE_VERSION: 20.16.0
NPM_PACKAGE_SCOPE: uuv
UUV_BASE_URL: https://e2e-test-quest.github.io

Expand All @@ -38,6 +38,7 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Use Node.js ${{env.NODE_VERSION}}
uses: actions/setup-node@v4
with:
Expand All @@ -49,20 +50,17 @@ jobs:
needs: install
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build artifacts
uses: ./.github/actions/nx-run-many
with:
node-version: ${{env.NODE_VERSION}}
target: "build"
exclude: "assistant-electron,docker-images,runner-flutter"
exclude: "assistant-electron,docker-images,runner-flutter,intellij-plugin"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-artifacts
include-hidden-files: true
path: |
packages/runner-commons/dist
packages/runner-cypress/dist
Expand All @@ -76,6 +74,7 @@ jobs:
packages/a11y/dist
packages/a11y/bundle
packages/assistant-electron/dist/uuv-assistant-win32-x64.zip
packages/a11y-dashboard/.output
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -102,19 +101,50 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Build artifacts electron
- name: Build electron artifacts
run: npx nx build assistant-electron --verbose
- name: Upload build artifact electron
- name: Upload build electron artifact
uses: actions/upload-artifact@v4
with:
name: build-artifacts-electron
path: |
packages/assistant-electron/dist/uuv-assistant-win32-x64.zip
build-gradle:
runs-on: ubuntu-22.04
needs: install
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache node modules
uses: actions/cache@v4
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}
path: |
node_modules
packages/assistant/node_modules
packages/docs/node_modules
packages/a11y/node_modules
packages/runner-commons/node_modules
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Build gradle artifacts
run: npx nx build intellij-plugin --verbose

build-docker:
runs-on: ubuntu-latest
needs: build
Expand All @@ -133,12 +163,18 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: packages
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Build images
run: npx nx run-many --target=docker:build -p docker-images
run: npx nx run-many --target=docker:build

unit-tests:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -282,6 +318,7 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Download build artifact
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -334,6 +371,7 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Download build artifact
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -378,7 +416,7 @@ jobs:

release:
if: github.ref == 'refs/heads/main'
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-a11y, unit-tests-playwright, unit-tests-cypress, integration-tests-assistant, unit-tests-runner-flutter, build-docker ]
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-a11y, unit-tests-playwright, unit-tests-cypress, integration-tests-assistant, unit-tests-runner-flutter, build-docker, build-gradle ]
runs-on: ubuntu-22.04
environment: release
steps:
Expand Down Expand Up @@ -466,6 +504,7 @@ jobs:
packages/runner-cypress/node_modules
packages/runner-playwright/node_modules
packages/vscode-extension/node_modules
packages/a11y-dashboard/node_modules
- name: Download Release artifact
uses: actions/download-artifact@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ packages/vscode-extension/.vscode-test/
packages/vscode-extension/out/
packages/vscode-extension/*.vsix
packages/vscode-extension/packages/

# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cucumber.features": [
"example/**/*.feature",
"packages/runner-cypress/e2e/**/*.feature",
"packages/runner-playwright/e2e/**/*.feature"
],
"cucumber.glue": [
"packages/runner-cypress/src/cucumber/step_definitions/*/unsafe/**/*.ts",
"packages/runner-cypress/src/cucumber/step_definitions/*/generated/**/*.ts",
"packages/runner-cypress/src/cucumber/step_definitions/*/generated/enriched/*/*.ts",
"packages/runner-playwright/src/cucumber/step_definitions/*/unsafe/**/*.ts",
"packages/runner-playwright/src/cucumber/step_definitions/*/generated/**/*.ts",
"packages/runner-playwright/src/cucumber/step_definitions/*/generated/enriched/*/*.ts"
]
}
7 changes: 7 additions & 0 deletions DEV_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ npx nx show projects
npx nx graph
```

### Display available tasks for a project

For example, to show the available tasks for the project `runner-cypress`
```shell
npx nx show project runner-cypress --json false
```

### Run a target for a project

For example, to run the target `myCommand` for the project `runner-cypress`
Expand Down
31 changes: 18 additions & 13 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": true
}
},
"workspaceLayout": {
"appsDir": "packages",
"libsDir": "packages"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
Expand All @@ -24,9 +33,7 @@
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
]
"dependsOn": ["^build"]
},
"lint": {
"inputs": [
Expand All @@ -36,18 +43,16 @@
]
},
"test": {
"inputs": [
"default",
"^default",
"{workspaceRoot}/jest.preset.js"
]
}
},
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": true
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"]
}
},
"plugins": [
{
"plugin": "@nx/nuxt/plugin",
"options": {
"buildTargetName": "build",
"serveTargetName": "serve"
}
}
]
}
Loading

0 comments on commit 5051848

Please sign in to comment.