AI_Diplomacy/.github/workflows/test.yml
Tyler Marques eebfba0a1b
Initial attempt at some tests that help us determine if the game has basic functionality
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:14:34 -07:00

33 lines
No EOL
567 B
YAML

name: Run Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run TypeScript check
run: npx tsc --noEmit
- name: Run tests
run: npm test -- --run
- name: Build project
run: npm run build