-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.08 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
pull_request:
types: [opened, synchronize, reopened]
# CI workflow isn't triggered by release-please PRs: https://github.com/google-github-actions/release-please-action#github-credentials
# Instead of using a PAT, trigger CI workflows on the mandatory review of release PRs
pull_request_review:
types: [submitted]
branches:
- 'release-please*'
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
name: Node ${{ matrix.node }} CI
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Update npm
run: npm install -g [email protected]
- name: Install dependencies
run: npm ci
- name: Check format
run: npm run format:check
- name: Lint
run: npm run lint
- name: Run tests with coverage
run: npm run test
- name: Build module
run: npm run build