-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (45 loc) · 1.37 KB
/
reftest.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
name: reftest
on: [push, pull_request]
jobs:
reftest:
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} / ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18.x, 20.x]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout akashic-engine repository
uses: actions/checkout@v3
with:
path: akashic-engine
- name: Checkout engine-files repository
uses: actions/checkout@v3
with:
repository: akashic-games/engine-files
path: engine-files
- name: Pack akashic-engine
working-directory: akashic-engine
id: akashic_engine
run: |
npm ci
echo "pack_name=$(npm pack)" >> $GITHUB_OUTPUT
- name: Run engine-files reftest
working-directory: engine-files
run: |
npm ci
npm i ../akashic-engine/${{steps.akashic_engine.outputs.pack_name}} --no-save
npm run build
npm test
- name: Archive artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: engine_files_reftest_result
path: |
./engine-files/tests/fixtures/**/expected/
./engine-files/tests/fixtures/**/actual/
./engine-files/tests/fixtures/**/diff/