-
Notifications
You must be signed in to change notification settings - Fork 251
77 lines (73 loc) · 2.05 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
pull_request: ~
merge_group:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
os: ['ubuntu-latest', 'windows-latest']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci --engine-strict
- name: Build & lint & test
run: npm run all
incremental_mutation_test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:no-check
- name: Download incremental reports
run: npm run download-incremental-reports
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Run stryker run --incremental
run: npm run test:mutation:incremental
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
e2e:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
steps:
# https://github.com/ryanclark/karma-webpack/issues/494
- name: Windows temp dir fix
run: |
echo TEMP="D:\Temp" >> $env:GITHUB_ENV
echo TMP="D:\Temp" >> $env:GITHUB_ENV
- uses: actions/checkout@v4
- name: Install dependencies
# retry once, install on windows is flaky...
run: npm ci || npm ci
- name: Build packages
run: npm run build:no-check
- name: e2e install
run: 'npm run e2e:install'
- name: e2e lint
run: 'npm run e2e:lint'
- name: Run e2e tests
run: 'npm run e2e:run'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: e2e-reports
path: |
e2e/test/*/reports/mutation/
e2e/test/*/stryker.log