Skip to content

chore: test workflow runs with ubuntu and windows OS #6451

chore: test workflow runs with ubuntu and windows OS

chore: test workflow runs with ubuntu and windows OS #6451

Workflow file for this run

name: Templates
on:
push:
branches:
- main
pull_request:
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
strategy:
matrix:
os: [ubuntu-latest-16-cores, windows-latest]
template: [vanilla, react, react-ecs, phaser, threejs]
runs-on: ${{ matrix.os }}
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 gas-report` and commit them
uses: ./.github/actions/require-empty-diff
- name: Run tests
working-directory: ./templates/${{ matrix.template }}
run: pnpm run test