Skip to content

Commit

Permalink
chore: Update CI workflow (#144)
Browse files Browse the repository at this point in the history
* Update deprecated set-output command.
* Update actions to use Node 16 rather than Node 12.
  • Loading branch information
philjhale committed May 24, 2023
1 parent 160234c commit f088ede
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
should-skip-job: ${{steps.skip-check.outputs.should_skip}}
steps:
- id: skip-check
uses: fkirc/skip-duplicate-actions@v2.1.0
uses: fkirc/skip-duplicate-actions@v5.3.0
with:
github_token: ${{github.token}}

Expand All @@ -30,10 +30,10 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: read node version from .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
shell: bash
id: nvm

Expand All @@ -47,7 +47,7 @@ jobs:
run: pulseaudio -D

- name: setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '${{steps.nvm.outputs.NVMRC}}'
cache: npm
Expand All @@ -61,12 +61,12 @@ jobs:
run: npm i --prefer-offline --no-audit

- name: run npm test
uses: GabrielBB/xvfb-action@v1
uses: coactions/setup-xvfb@v1
with:
run: npm run test

- name: coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: './test/dist/coverage/coverage-final.json'
Expand Down

0 comments on commit f088ede

Please sign in to comment.