Skip to content

Update to Yarn

Update to Yarn #636

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 44, Col: 19): Job 'deploy' depends on unknown job 'ts'.
on: [push]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: "22.x"
- run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Check formatting
run: yarn format:check
- name: Type check
run: yarn ts
test:
name: Test
runs-on: ubuntu-latest
env:
DATABASE_FILENAME: ./data/mskelton.db
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: "22.x"
- run: yarn install --frozen-lockfile
- run: yarn playwright install chromium --with-deps
- run: yarn db:seed
- run: yarn test
- name: Upload test results
uses: actions/upload-artifact@v4
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 \
--build-arg "NEXT_PUBLIC_GA_ID=${{ vars.NEXT_PUBLIC_GA_ID }}"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}