aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/ci.yml36
1 files changed, 20 insertions, 16 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 36e35b9..c35c66a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,25 +1,29 @@
name: ci
-on: [push]
+on:
+ - push
+ - pull_request
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
strategy:
matrix:
- node: [ '18', '16', '14' ]
+ node: ['22', '20', '18']
name: Node ${{ matrix.node }} CI
steps:
- - uses: actions/checkout@v1
- - name: Setup node
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node }}
- - name: npm install, build, lint, and test
- run: |
- npm ci
- npm run build
- npm run lint
- npm test
- env:
- CI: true
+ - uses: actions/checkout@v4
+
+ - name: Setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node }}
+
+ - name: npm install, build, lint, and test
+ run: |
+ npm ci
+ npm run build
+ npm run lint
+ npm test
+ env:
+ CI: true