-
Notifications
You must be signed in to change notification settings - Fork 173
61 lines (58 loc) 路 1.57 KB
/
e2e.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
# build and test on linux, windows, mac with node 14, 16, 18
name: E2E tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# this is the test matrix, it runs with node16 on linux,windows,macos + node14,18 on linux
# it is skipped if the build step of the checks job wasn't successful (still runs if lint or audit fail)
test:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18]
os: [ubuntu-latest, macos-latest]
# include:
# - node: 14
# os: ubuntu-latest
# - node: 18
# os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: build imba
run: |
cd packages/imba
npm install
npm run build
npm link
env:
CI: true
- name: run tests
run: |
cd packages/e2e-tests
npm install
npm run test:serve
npm run test:build
- name: archive tests temp directory
if: failure()
shell: bash
run: tar -cvf test-temp.tar --exclude="node_modules" temp/
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-failure-${{github.run_id}}-${{ matrix.os }}-${{ matrix.node }}
path: |
test-temp.tar