-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.26 KB
/
build_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Test
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
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/composites/install/
- run: npx playwright install --with-deps
- run: pnpm test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright
path: |
**/.playwright/**
!node_modules/**
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/composites/install/
- run: pnpm build
env:
NODE_ENV: production
# No additional application specific environment variables should be provided here or in the CI.
# Application environment variables should be provided by the external deployment build system.
# (Providing no environment variables here also ensures that all apps support being built with zero config)
- run: pnpm typecheck