forked from shadowwalker/next-pwa
-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (41 loc) · 1.32 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
name: Build and test
on: [workflow_call]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
jobs:
build_and_lint_check:
name: 🔎 Typecheck
uses: ./.github/workflows/build-reusable.yml
with:
afterBuild: pnpm typecheck
secrets: inherit
test-integration-dev:
name: ⚫️ Run Jest (development mode) integration tests
uses: ./.github/workflows/build-reusable.yml
with:
afterBuild: |
NEXT_TEST_MODE=dev pnpm test -- -- __tests__/integration --ci --runInBand
secrets: inherit
test-integration-prod:
name: ⚫️ Run Jest (production mode) integration tests
uses: ./.github/workflows/build-reusable.yml
with:
afterBuild: |
NEXT_TEST_MODE=start pnpm test -- -- __tests__/integration --ci --runInBand
secrets: inherit
test-e2e-dev:
name: ⚫️ Run Jest (development mode) E2E tests
uses: ./.github/workflows/build-reusable.yml
with:
afterBuild: |
NEXT_TEST_MODE=dev pnpm test -- -- __tests__/e2e --ci --runInBand
secrets: inherit
test-e2e-prod:
name: ⚫️ Run Jest (production mode) E2E tests
uses: ./.github/workflows/build-reusable.yml
with:
afterBuild: |
NEXT_TEST_MODE=start pnpm test -- -- __tests__/e2e --ci --runInBand
secrets: inherit