-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (71 loc) · 2.14 KB
/
test.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
name: Test
on:
pull_request:
branches:
- "v[0-9]+"
jobs:
test:
runs-on: ${{ matrix.platform }}
name: ${{ matrix.platform }} test node@${{ matrix.node-version }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
node-version: ["14", "16", "18"]
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.63
- uses: actions/checkout@v3
- run: yarn install
- run: yarn build
# specifically running this after build
# using the n-api, the default node on github actions
# should build a .node that works in any of the node
# versions that we have specified in the matrix
- uses: volta-cli/action@v3
with:
node-version: ${{ matrix.node-version }}
yarn-version: 1.22.19
- run: yarn test
effection-smoke-test:
runs-on: ${{ matrix.platform }}
name: test effection linked - ${{ matrix.platform }} node@${{ matrix.node-version }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
node-version: ["14", "16", "18"]
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
# checkout and setup ctrlc-windows
- uses: actions/checkout@v3
with:
path: ctrlc-windows
- run: yarn install --ignore-scripts
working-directory: ctrlc-windows
- run: yarn build
working-directory: ctrlc-windows
- run: yarn link
working-directory: ctrlc-windows
- uses: volta-cli/action@v3
with:
node-version: ${{ matrix.node-version }}
yarn-version: 1.22.19
# checkout and setup effection then run tests
- uses: actions/checkout@v3
with:
path: effection
repository: thefrontside/effection
- run: yarn install
working-directory: effection
- run: yarn link ctrlc-windows
working-directory: effection
- run: yarn prepack
working-directory: effection
- run: yarn test
working-directory: effection
shell: bash