Skip to content

Commit

Permalink
ci: update the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Jan 30, 2024
1 parent 1dd0c71 commit c1e485b
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20, 21]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}
check-latest: true

- name: Install dependencies
Expand Down Expand Up @@ -43,12 +47,26 @@ jobs:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.github_token }}
flag-name: Node.js v${{ matrix.node-version }}
parallel: true

coverage:
needs: [test]

runs-on: ubuntu-latest

steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

release:
if: ${{ github.ref == 'refs/heads/main' }}

needs: [test]
needs: [test, coverage]

runs-on: ubuntu-latest

Expand All @@ -57,7 +75,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
check-latest: true

- name: Import GPG key
Expand Down

0 comments on commit c1e485b

Please sign in to comment.