Skip to content

Commit

Permalink
Fix the order that we test the npm version of Emglken, so that update…
Browse files Browse the repository at this point in the history
…s actually get deployed
  • Loading branch information
curiousdannii committed Mar 2, 2025
1 parent cd91ccc commit 5b53dc0
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,18 @@ jobs:
- name: Install dependencies
run: |
npm install
npm run link-local-emglken
cd src/iplayif.com/app && npm install
- name: Static tests
run: |
npm run lint
npm run svelte-check
- name: Test npm version of Emglken
if: github.ref == 'refs/heads/master'
run: |
./build.js
./tools/make-single-file.js
./tools/package-inform7.sh
./tests/runtests.sh
- name: Restore Emglken from the cache
id: cache-emglken
uses: actions/cache@v4
Expand All @@ -56,27 +66,14 @@ jobs:
src/upstream/emglken/build/*.json
src/upstream/emglken/build/*.wasm
key: emglken-${{ needs.build-emglken.outputs.ref }}
- name: Static tests
run: |
npm run lint
npm run svelte-check
- name: Build Parchment distributions
run: |
npm run link-local-emglken
./build.js
./tools/make-single-file.js
./tools/package-inform7.sh
- name: Test storyfiles
run: ./tests/runtests.sh
- name: Test npm version of Emglken
if: github.ref == 'refs/heads/master'
run: |
npm install
./build.js
./tools/make-single-file.js
./tools/package-inform7.sh
./tests/runtests.sh
# But restore the local version again before deploying!
npm run link-local-emglken
- name: Check browser compatibility
run: ./tests/check-compat.sh
- run: cp tools/deploy.gitignore .gitignore
Expand Down

0 comments on commit 5b53dc0

Please sign in to comment.