feat(world): enable config namespaces key #8525
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: Examples | |
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: | |
main: | |
name: Build/test examples | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: [minimal, multiple-namespaces] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Install example dependencies | |
working-directory: ./examples/${{ matrix.example }} | |
run: pnpm install | |
- name: Clean example | |
working-directory: ./examples/${{ matrix.example }} | |
run: pnpm run clean | |
- name: Build example | |
working-directory: ./examples/${{ matrix.example }} | |
run: pnpm run build | |
- name: Outdated files, run `pnpm run build` in `examples/${{ matrix.example }}` and commit them | |
uses: ./.github/actions/require-empty-diff | |
- name: Run tests | |
working-directory: ./examples/${{ matrix.example }} | |
run: pnpm run test |