-
Notifications
You must be signed in to change notification settings - Fork 128
44 lines (35 loc) · 1.11 KB
/
ci-tests.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
name: Master CI Tests
on:
push:
branches: [ master ]
jobs:
pr-tests:
name: Install, lint, test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest, windows-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout actions
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Skip steps if actor is CI Agent, which makes automated commits for version bumping and coverage data
- name: Install npm 7
if: github.triggering_actor != 'CI Agent'
run: npm i -g npm@7 --registry=https://registry.npmjs.org
- name: Install
if: github.triggering_actor != 'CI Agent'
run: npm ci
- name: Lint
if: github.triggering_actor != 'CI Agent'
run: npm run lint:ci
- name: Unit tests
if: github.triggering_actor != 'CI Agent'
run: npm test --workspaces
- name: E2E tests
if: github.triggering_actor != 'CI Agent'
run: npm run test:e2e