some cache-control #303
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
defaults: | |
run: | |
shell: bash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-db: unciv | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Lint TypeScript | |
run: bun lint | |
- name: Run tests | |
run: | | |
HOST=:: \ | |
SYNC_TOKEN=$(openssl rand -base64 32) \ | |
DISCORD_TOKEN=$(openssl rand -base64 32) \ | |
MONGO_URL=mongodb://localhost:27017/unciv \ | |
bun test |