Skip to content

ci: use Node 24 and add 'existing' option to release workflow (#118) #133

ci: use Node 24 and add 'existing' option to release workflow (#118)

ci: use Node 24 and add 'existing' option to release workflow (#118) #133

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
node: [18, 20]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{matrix.node}}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}
- name: npm install and test
run: |
npm install
npm test
env:
CI: true
coverage:
name: Coverage (Coveralls)
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
- run: |
npm install
npm test
env:
CI: true
- name: Coveralls
if: success()
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{secrets.GITHUB_TOKEN}}