Run tests (web) #28
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 (web) | |
on: | |
pull_request: | |
paths: | |
- "**/*.ts" | |
- "**/*.tsx" | |
- "web/bun.lock" | |
push: | |
paths: | |
- "**/*.ts" | |
- "**/*.tsx" | |
- "web/bun.lock" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Build web project | |
run: | | |
bun install | |
bun run build | |
working-directory: ./web | |
- name: Run tests | |
run: bun test | |
working-directory: ./web | |
# temporarily disabled due to a bug with astros client.d.ts | |
# - name: Run typecheck | |
# run: bun typecheck | |
# working-directory: ./web |