Skip to content

Commit

Permalink
chore(test): Update action test environment to Ubuntu 22.04, Node 18 (#…
Browse files Browse the repository at this point in the history
…1458)

* Update action environment to Ubuntu 22.04, Node 18
* Update pem
* Update @types/node
* Fix baselines
  • Loading branch information
tombrunet authored May 17, 2023
1 parent d389690 commit e1f4803
Show file tree
Hide file tree
Showing 13 changed files with 190 additions and 185 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
# Extension package and artifact on master
####
extension-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -57,11 +57,11 @@ jobs:
path: accessibility-checker-extension/package/accessibility-checker-extension.zip

act-results:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -96,11 +96,11 @@ jobs:
path: accessibility-checker/test-act-w3/act-report-v2.txt

rule-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
# NPM Node
####
accessibility-checker-engine-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -52,11 +52,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

accessibility-checker-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -75,11 +75,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

karma-accessibility-checker-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -98,11 +98,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

cypress-accessibility-checker-publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -123,11 +123,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

extension-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -193,11 +193,11 @@ jobs:
path: accessibility-checker-extension/package/accessibility-checker-extension.zip

rule-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
48 changes: 25 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
# Engine test
####
accessibility-checker-engine-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -40,11 +40,11 @@ jobs:
working-directory: accessibility-checker-engine

act-results:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -132,11 +132,11 @@ jobs:
# Node basic test
####
accessibility-checker-test-basic:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -178,11 +178,11 @@ jobs:
# Node basic test
####
accessibility-checker-test-basic2:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -218,11 +218,11 @@ jobs:
# Node Selenium test
####
accessibility-checker-test-selenium:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -259,11 +259,11 @@ jobs:
# Node Playwright test
####
accessibility-checker-test-playwright:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -298,11 +298,11 @@ jobs:
# Karma Tests
####
karma-accessibility-checker-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
# test-file: [karma.conf1.js, karma.conf1b.js, karma.conf2.js, karma.conf2b.js, karma.conf3.js] // conf1 and conf2 fail a lot
test-file: [karma.conf1b.js, karma.conf2b.js, karma.conf3.js]

Expand Down Expand Up @@ -342,11 +342,11 @@ jobs:
# Cypress test
####
cypress-checker-test-basic:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -370,19 +370,21 @@ jobs:
- run: npm install
working-directory: cypress-accessibility-checker
- run: npm run build:report
working-directory: cypress-accessibility-checker
- run: npm test
working-directory: cypress-accessibility-checker
- run: npm run test:start-http &
working-directory: cypress-accessibility-checker
- run: npx cypress run
working-directory: cypress-accessibility-checker/test

###############################################################################
# Extension Build verification
####
extension-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -422,11 +424,11 @@ jobs:
path: accessibility-checker-extension/package/accessibility-checker-extension.zip

rule-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion accessibility-checker-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "IBM",
"license": "SEE LICENSE IN LICENSE from the 'equal-access' repository",
"devDependencies": {
"@types/node": "^16.10.2",
"@types/node": "^18.15.3",
"chai": "^4.3.4",
"coverage-istanbul-loader": "^3.0.5",
"express": "^4.17.1",
Expand Down
14 changes: 7 additions & 7 deletions accessibility-checker-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion accessibility-checker-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/chrome": "^0.0.171",
"@types/jest": "^27.0.3",
"@types/markdown-to-jsx": "^7.0.0",
"@types/node": "^16.10.2",
"@types/node": "^18.15.3",
"@types/react": "17.0.37",
"@types/react-dom": "^17.0.11",
"@types/react-redux": "^7.1.20",
Expand Down
2 changes: 1 addition & 1 deletion accessibility-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@playwright/test": "^1.21.1",
"@types/node": "^16.10.2",
"@types/node": "^18.15.3",
"adm-zip": "^0.5.9",
"chai": "^4.3.4",
"eslint": "^8.4.1",
Expand Down
Loading

0 comments on commit e1f4803

Please sign in to comment.