Skip to content

[ci] Update actions/setup-node action to v4 #66

[ci] Update actions/setup-node action to v4

[ci] Update actions/setup-node action to v4 #66

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 14
- 16
- 18
- 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run: npm run test-esm
- uses: coverallsapp/github-action@v2
if: matrix.node == 20
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test-browser:
runs-on: ubuntu-latest
env:
SAUCE_USERNAME: eventemitter3
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run test-browser