Skip to content

Commit

Permalink
ci: migrate to nodejs 18
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 4, 2023
1 parent 47304c5 commit 86d7020
Show file tree
Hide file tree
Showing 3 changed files with 1,311 additions and 1,311 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Download artifact
uses: qiwi-forks/action-download-artifact@v2
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Restore artifact from cache (if exists)
uses: actions/cache@v3
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 16, 18, 20 ]
node-version: [ 18, 20 ]
name: Test (Node v${{ matrix.node-version }}, OS ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -195,17 +195,17 @@ jobs:
run: yarn

- name: Docker pull
if: matrix.node-version == '16'
if: matrix.node-version == '18'
run: |
docker pull browserless/chrome@sha256:4655517b70d598367f363e15fa311ea514879f6b4908ba9199d6714d6f8269a3
docker pull nginx@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43
- name: Lint
if: matrix.node-version == '18'
if: matrix.node-version == '20'
run: yarn lint

- name: Visual tests
if: matrix.node-version == '16'
if: matrix.node-version == '18'
run: yarn test

- name: Save failure results
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

# - name: Codeclimate
# uses: paambaati/[email protected]
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"packages/*"
],
"scripts": {
"clean": "yarn workspaces foreach --parallel --no-private --interlaced run clean",
"build": "yarn workspaces foreach --parallel --topological-dev --no-private --interlaced run build",
"start": "yarn workspaces foreach --parallel --no-private --interlaced run start",
"test": "yarn workspaces foreach --parallel --no-private --interlaced run test",
"format": "yarn workspaces foreach --parallel --no-private --interlaced run format",
"lint": "yarn workspaces foreach --parallel --no-private --interlaced run lint"
"clean": "yarn workspaces foreach --all --parallel --no-private --interlaced run clean",
"build": "yarn workspaces foreach --all --parallel --topological-dev --no-private --interlaced run build",
"start": "yarn workspaces foreach --all --parallel --no-private --interlaced run start",
"test": "yarn workspaces foreach --all --parallel --no-private --interlaced run test",
"format": "yarn workspaces foreach --all --parallel --no-private --interlaced run format",
"lint": "yarn workspaces foreach --all --parallel --no-private --interlaced run lint"
},
"resolutions": {
"@types/react": "18.0.18",
Expand Down
Loading

0 comments on commit 86d7020

Please sign in to comment.