Update GitHub action dependencies: - `actions/checkout` - `actions/setup-node` - `actions/cache` - `actions/upload-artifact`
22 lines
475 B
YAML
22 lines
475 B
YAML
name: ci
|
|
on: [push,pull_request]
|
|
jobs:
|
|
test:
|
|
name: Node ${{ matrix.node }} / ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
node:
|
|
- '20'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- run: npm install
|
|
- run: npm run build --if-present
|
|
- run: npm test
|