fix(world): library imports #11238
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: Templates | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
env: | |
# Fix OOM errors with sourcemaps in phaser client | |
# https://github.com/latticexyz/mud/issues/1019 | |
NODE_OPTIONS: --max-old-space-size=8192 | |
jobs: | |
build: | |
name: Build template | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
template: [vanilla, react, react-ecs, phaser, threejs] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Install template dependencies | |
working-directory: ./templates/${{ matrix.template }} | |
run: pnpm install | |
- name: Build template | |
working-directory: ./templates/${{ matrix.template }} | |
run: pnpm run build | |
- name: Outdated files, run `pnpm build` and commit them | |
uses: ./.github/actions/require-empty-diff | |
- name: Run tests | |
working-directory: ./templates/${{ matrix.template }} | |
run: pnpm run test |