bump deps, add line_items_summary #228
This file contains hidden or 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
deploy-fe: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install deps (with cache) | |
run: pnpm install | |
- name: Typecheck | |
run: pnpm typecheck | |
- name: Test | |
run: pnpm test | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install chromium --with-deps | |
- name: Create .dev.vars for faktorio-api | |
env: | |
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }} | |
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
MAILJET_API_KEY: ${{ secrets.MAILJET_API_KEY }} | |
MAILJET_API_SECRET: ${{ secrets.MAILJET_API_SECRET }} | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: node --experimental-strip-types faktorio-api/scripts/generate-dev-vars.ts | |
- name: Run Playwright tests | |
run: pnpm test:e2e | |
env: | |
VITE_API_URL: http://localhost:9189/trpc | |
VITE_GOOGLE_CLIENT_ID: ${{ vars.VITE_GOOGLE_CLIENT_ID }} | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |