Fix some grid window issues #353
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: test-and-deploy | |
on: | |
push: | |
branches: | |
- '*' | |
- '!gh-pages' | |
pull_request: | |
jobs: | |
build-emglken: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get Emglken commit ref | |
id: emglken-ref | |
run: echo "ref=$(git submodule status src/upstream/emglken | cut -c 2-13)" >> $GITHUB_OUTPUT | |
- name: Cache the built Emglken | |
id: cache-emglken | |
uses: actions/cache@v4 | |
with: | |
path: | | |
src/upstream/emglken/build/*.js | |
src/upstream/emglken/build/*.wasm | |
key: emglken-${{ steps.emglken-ref.outputs.ref }} | |
- name: Build Emglken | |
if: steps.cache-emglken.outputs.cache-hit != 'true' | |
run: ./src/upstream/emglken/build.sh | |
outputs: | |
ref: ${{ steps.emglken-ref.outputs.ref }} | |
test-and-deploy: | |
needs: build-emglken | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- 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 tsc-check | |
- name: Restore Emglken from the cache | |
id: cache-emglken | |
uses: actions/cache@v4 | |
with: | |
path: | | |
src/upstream/emglken/build/*.js | |
src/upstream/emglken/build/*.wasm | |
key: emglken-${{ needs.build-emglken.outputs.ref }} | |
- name: Build Parchment distributions | |
run: | | |
./build.js | |
./tools/make-single-file.js | |
./tools/package-inform7.sh | |
- name: Test storyfiles | |
run: ./tests/runtests.sh | |
- name: Check browser compatibility | |
run: ./tests/check-compat.sh | |
- run: cp tools/deploy.gitignore .gitignore | |
- name: Deploy to Pages 🚀 | |
if: github.ref == 'refs/heads/master' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: . | |
- name: Deploy to testing site 🚀 | |
if: github.ref == 'refs/heads/testing' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
clean: false | |
folder: . | |
repository-name: ${{ secrets.PARCHMENT_TESTING_REPO }} | |
token: ${{ secrets.PARCHMENT_TESTING_TOKEN }} |