diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6bc8c33 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Unit Tests + +on: + pull_request: + branches: ["main"] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Install dependencies + run: npm ci + + - name: Run unit tests + run: npx ng test --watch=false --no-progress --browsers=ChromeHeadless diff --git a/.gitignore b/.gitignore index 70583d7..c5e1b4b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ testem.log # System files .DS_Store Thumbs.db +default-cards-*.json diff --git a/CLAUDE.md b/CLAUDE.md index aa7cfda..df41487 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -85,3 +85,7 @@ Deploys automatically to GitHub Pages on push to `main` via `.github/workflows/b - Font Awesome 6 (free icons) + Mana Symbol fonts for MTG symbols - TypeScript 5.9 strict mode - SCSS, Prettier (100 char width, single quotes) + +## Public Repo + +This project is publicly hosted at `robdennis/trappist` and synced from the monorepo via git subtree. GitHub Pages deploys automatically on push to `main` (tests must pass first).