-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (49 loc) · 1.47 KB
/
tests.yaml
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
name: tests
on:
push:
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 19
- run: make setup
name: Setup
- run: echo "version=$(make emscripten-version)" >> $GITHUB_OUTPUT
id: emscripten-version
name: Get emscripten version
- uses: actions/cache/restore@v3
name: Restore emscripten cache
id: emscripten-cache
with:
path: ${{ github.workspace }}/emscripten_cache
key: ${{ runner.os }}-emscripten-${{ steps.emscripten-version.outputs.version }}
- run: make build
name: Build
env:
EM_CACHE: ${{ github.workspace }}/emscripten_cache
- run: make install
name: Install
- run: npm test
name: Test
- uses: actions/upload-artifact@v3
name: Upload artifacts
with:
name: opentimelineio
path: install/
if: success() || failure()
- uses: actions/cache/save@v3
name: Save emscripten cache
with:
path: ${{ github.workspace }}/emscripten_cache
key: ${{ steps.emscripten-cache.outputs.cache-primary-key }}
if: (success() || failure()) && steps.emscripten-cache.outputs.cache-hit != 'true'