Skip to content

Test published packages #8

Test published packages

Test published packages #8

name: Test published packages
on:
workflow_call:
inputs:
tag-or-version:
required: true
type: string
workflow_dispatch:
inputs:
tag-or-version:
required: true
type: string
description: npm tag or version of MUD
jobs:
test-create-mud-project:
name: Test create-mud project
strategy:
fail-fast: false
matrix:
os: [depot-ubuntu-22.04-16, windows-latest]
template: [vanilla, react, react-ecs, phaser, threejs]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: .github
- name: Setup
uses: ./.github/actions/setup-prerequisites
- name: Test
run: |
pnpm create mud@${{ inputs.tag-or-version }} project --template ${{ matrix.template }}
pnpm --dir project run test