ci: add doubledash again #4
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: On push | |
on: [push] | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
jobs: | |
conventions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm lint | |
- run: pnpm format | |
- run: pnpm depcheck | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.39.0-jammy # Has to be same version as in package.json | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm test | |
env: | |
HOME: /root # Workaround required when using playwright image in ghactions. See https://github.com/microsoft/playwright/issues/6500#issuecomment-845919578 | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright | |
path: "**/.playwright/**" | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm build | |
env: | |
# We can only build for development in CI, | |
# since production settings and builds are handled externally (e.g. by Vercel). | |
# This CI job is only for sanity testing the build process in the CI. | |
NODE_ENV: development | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/workflows/composites/install/ | |
- run: pnpm typecheck |