Skip to content

Commit

Permalink
ci: use nodejs 20, update ubuntu to 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 14, 2023
1 parent 46d927a commit a8278a3
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 836 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@
name: CI
on: [push, pull_request]
jobs:
init:
name: init
runs-on: ubuntu-22.04
outputs:
skip: ${{ steps.ci-skip-step.outputs.ci-skip }}
skip-not: ${{ steps.ci-skip-step.outputs.ci-skip-not }}
steps:
- uses: actions/checkout@v4
- id: ci-skip-step
uses: mstachniuk/ci-skip@v1

test_push:
name: Test on push
needs: init
if: ${{ needs.init.outputs.skip == 'false' && github.event_name == 'push' }}
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -26,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install deps
run: npm i
Expand All @@ -35,13 +23,13 @@ jobs:
run: npm run test

test_pr:
if: ${{ needs.init.outputs.skip == 'false' && github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request' }}
needs: init
name: Test PR (Node v${{ matrix.node-version }}, OS ${{ matrix.os }})
strategy:
matrix:
os: [ ubuntu-20.04 ]
node-version: [ 16, 18 ]
os: [ ubuntu-22.04 ]
node-version: [ 16, 20 ]

runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -86,7 +74,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install deps
run: npm i
Expand Down
123 changes: 111 additions & 12 deletions npm-shrinkwrap.json

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

Loading

0 comments on commit a8278a3

Please sign in to comment.