Skip to content

Commit

Permalink
feat(a11y): initialize @uuv/a11y lib, #330
Browse files Browse the repository at this point in the history
  • Loading branch information
luifr10 committed Jan 8, 2024
1 parent ff4d41f commit 3c27ac5
Show file tree
Hide file tree
Showing 156 changed files with 37,738 additions and 17,018 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 @@ -26,6 +26,7 @@ runs:
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
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/nx-test-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ runs:
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
Expand All @@ -32,5 +33,5 @@ runs:
node-version: ${{ inputs.node-version }}
- run: npm ci
shell: bash
- run: cd packages/runner-${{ inputs.runner-name }} && npm run test:run
- run: cd packages/${{ inputs.runner-name }} && npm run test:run
shell: bash
33 changes: 26 additions & 7 deletions .github/workflows/uuv-github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
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
Expand Down Expand Up @@ -67,6 +68,8 @@ jobs:
packages/docs/static/assistant
packages/assistant/dist
packages/assistant/build
packages/a11y/dist
packages/a11y/bundle
packages/assistant-electron/dist/uuv-assistant-win32-x64.zip
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -84,7 +87,21 @@ jobs:
with:
node-version: ${{env.NODE_VERSION}}
target: "test"
exclude: "runner-cypress,runner-playwright"
exclude: "a11y,runner-cypress,runner-playwright"

unit-tests-a11y:
runs-on: ubuntu-latest
needs: [ lint, unit-tests, build ]
steps:
- uses: actions/checkout@v3
- uses: browser-actions/setup-chrome@v1
- run: chrome --version
- name: Running A11y unit tests with Puppeteer
uses: ./.github/actions/nx-test-runner
with:
node-version: ${{env.NODE_VERSION}}
runner-name: "a11y"


unit-tests-cypress:
runs-on: ubuntu-latest
Expand All @@ -97,7 +114,7 @@ jobs:
uses: ./.github/actions/nx-test-runner
with:
node-version: ${{env.NODE_VERSION}}
runner-name: "cypress"
runner-name: "runner-cypress"

unit-tests-playwright:
runs-on: ubuntu-latest
Expand All @@ -108,7 +125,7 @@ jobs:
uses: ./.github/actions/nx-test-runner
with:
node-version: ${{env.NODE_VERSION}}
runner-name: "playwright"
runner-name: "runner-playwright"

integration-tests-cypress:
runs-on: ubuntu-latest
Expand All @@ -125,6 +142,7 @@ jobs:
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
Expand All @@ -140,7 +158,7 @@ jobs:
${{env.NODE_VERSION}}
- run: npm ci
- name: Package runner-cypress
run: mkdir -p ./dist/packages && npm run nx package runner-commons && npm run nx package runner-cypress
run: mkdir -p ./dist/packages && npm run nx package a11y && npm run nx package runner-commons && npm run nx package runner-cypress
- name: Running cypress integration tests
run: cd ./tests/integration && chmod 755 ./integration-tests-runner-cypress.sh && ./integration-tests-runner-cypress.sh
- name: Upload uuv test artifact
Expand All @@ -163,6 +181,7 @@ jobs:
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
Expand All @@ -173,7 +192,7 @@ jobs:
path:
packages
- name: Package runner-playwright
run: mkdir -p ./dist/packages && npm run nx package runner-commons && npm run nx package runner-playwright
run: mkdir -p ./dist/packages && npm run nx package a11y && npm run nx package runner-commons && npm run nx package runner-playwright
- name: Running playwright integration tests
run: cd ./tests/integration && chmod 755 ./integration-tests-runner-playwright.sh && ./integration-tests-runner-playwright.sh
- name: Upload uuv test artifact
Expand All @@ -196,7 +215,7 @@ jobs:

release:
if: github.ref == 'refs/heads/main'
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-playwright, unit-tests-cypress ]
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-a11y, unit-tests-playwright, unit-tests-cypress ]
runs-on: ubuntu-latest
environment: release
steps:
Expand Down Expand Up @@ -285,7 +304,7 @@ jobs:

publish-docs:
if: github.ref == 'refs/heads/main'
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-playwright, unit-tests-cypress ]
needs: [ integration-tests-cypress, integration-tests-playwright, unit-tests-a11y, unit-tests-playwright, unit-tests-cypress ]
permissions:
pages: write
id-token: write
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,19 @@ testem.log
Thumbs.db
*.iml
packages/runner-cypress/cypress/screenshots/
packages/docs/docs/03-wordings/01-generated-wording-description/


packages/runner-playwright/src/cucumber/step_definitions/playwright/generated/
packages/runner-playwright/reports/
packages/runner-playwright/tests/.features-gen
packages/docs/i18n/fr/docusaurus-plugin-content-docs/current/03-wordings/01-generated-wording-description/
packages/docs/static/assistant/uuv-assistant-resources.bundle.js
packages/docs/static/assistant/index.html
packages/docs/static/assistant/style.css
tests/integration/runner-cypress/
tests/integration/runner-playwright/
packages/intellij-plugin/.idea/
/packages/a11y/bundle/
/packages/docs/docs/04-wordings/01-generated-wording-description/*
!/packages/docs/docs/04-wordings/01-generated-wording-description/.gitkeep
/packages/docs/i18n/fr/docusaurus-plugin-content-docs/current/04-wordings/01-generated-wording-description/*
!/packages/docs/i18n/fr/docusaurus-plugin-content-docs/current/04-wordings/01-generated-wording-description/.gitkeep
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ build-runner-cypress:
paths:
- "packages/runner-cypress/dist"
- "packages/runner-cypress/src/cucumber/step_definitions/cypress/generated"
- "packages/docs/docs/03-wordings/01-generated-wording-description"
- "packages/docs/docs/04-wordings/01-generated-wording-description"
- "packages/docs/docs/05-tools"
only:
- master

Expand Down
15 changes: 7 additions & 8 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
]
"dependsOn": ["^build"]
},
"lint": {
"inputs": [
Expand All @@ -36,11 +34,12 @@
]
},
"test": {
"inputs": [
"default",
"^default",
"{workspaceRoot}/jest.preset.js"
]
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"]
}
},
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": true
}
}
}
Loading

0 comments on commit 3c27ac5

Please sign in to comment.