Remove portal #402
Workflow file for this run
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: Build | |
on: [push] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mskelton/setup-pnpm@v2 | |
- name: Lint | |
run: pnpm lint | |
- name: Check formatting | |
run: pnpm prettier --check . | |
ts: | |
name: Type Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mskelton/setup-pnpm@v2 | |
- name: Build | |
run: pnpm db:generate | |
- name: Type check | |
run: pnpm ts | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mskelton/setup-pnpm@v2 | |
- run: pnpm playwright install chromium --with-deps | |
- run: pnpm db:generate | |
- run: pnpm test | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
- name: Upload test results | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
with: | |
name: test-results | |
path: test-results | |
deploy: | |
name: Deploy | |
if: github.ref == 'refs/heads/main' | |
needs: [lint, ts, test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Fly | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy | |
run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |