-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.71 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
name: "tests"
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os }}
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-preventing-a-specific-failing-matrix-job-from-failing-a-workflow-run
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: [12, 14, 16, 18]
experimental: [false]
exclude:
- os: macos-latest
node: 12
# nodegit binary missing...
#
# e.g. https://github.com/kiprasmel/git-stacked-rebase/actions/runs/4606760208/jobs/8140453365
#
# ```
# install response status 404 Not Found on
# https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.28.0-alpha.18-node-v108-linux-x64.tar.gz
# ```
#
# see also:
# - https://github.com/nodegit/nodegit/issues/1840#issuecomment-943083741
# - https://github.com/nodegit/nodegit/issues/1840#issuecomment-1302139622
- os: ubuntu-latest
node: 18
include:
# test macos - for some reason, internet conn fails @ github actions
- os: macos-latest
node: 12
experimental: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- run: yarn --frozen-lockfile
- run: yarn test
# e2e
- run: yarn install:all
- run: yarn build:all
- run: ./dist/git-stacked-rebase.js --debug