Fix lint error #1770
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: [18.x, 20.x] | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Checkout akashic-engine repository | |
uses: actions/checkout@v4 | |
with: | |
path: akashic-engine | |
- name: Checkout engine-files repository | |
uses: actions/checkout@v4 | |
with: | |
repository: akashic-games/engine-files | |
path: engine-files | |
- name: Pack akashic-engine | |
working-directory: akashic-engine | |
id: akashic_engine | |
run: | | |
npm ci | |
npm pack | |
fileName=$(ls -1 akashic-akashic-engine-*.tgz) | |
echo "pack_name=$fileName" >> $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@v4 | |
with: | |
name: engine_files_reftest_result_${{ matrix.os }}_${{ matrix.node }} | |
path: | | |
./engine-files/tests/fixtures/**/expected/ | |
./engine-files/tests/fixtures/**/actual/ | |
./engine-files/tests/fixtures/**/diff/ |