Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
continue-on-error: true

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Unit tests

- add unit tests for: fundamental game logic implementing game rules, and non-trivial game-specific logic, and non-trivial shared/common logic
- otherwise, avoid unnecessary tests, avoid change detector tests, avoid over mocked tests
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
margin: 0;
background-color: #f0f0f0;
}
.player-container {
display: flex;
justify-content: center;
gap: 40px;
padding: 20px;
}
@media (max-width: 768px) {
.player-container {
flex-direction: column;
gap: 20px;
align-items: center;
}
}
</style>
</head>
<body>
Expand Down
Loading