feat: support 'prepare' phase before the scene load #1457
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reftest | |
on: [push, pull_request] | |
jobs: | |
reftest: | |
runs-on: ${{ matrix.os }} | |
name: Node ${{ matrix.node }} / ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [16.x, 18.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/ |