Skip to content

Commit c313da3

Browse files
committed
run all jobs
1 parent a65e0d8 commit c313da3

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: CI
22

33
on:
44
push:
5-
branches: ["main", "react-demo-app"]
5+
branches: ["main", "react-demo-app"] # remove "react-demo-app" before merge to main
66
pull_request:
77
types: [opened, synchronize]
88

9+
concurrency:
10+
group: pr-${{ github.head_ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
build:
1115
name: Build
@@ -19,15 +23,32 @@ jobs:
1923
- name: Build
2024
run: pnpm build
2125

26+
lint:
27+
name: Lint
28+
timeout-minutes: 15
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: ./.github/workflows/actions/install
34+
2235
- name: Lint
2336
run: pnpm lint
2437

38+
unit:
39+
name: Unit
40+
timeout-minutes: 15
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- uses: actions/checkout@v3
45+
- uses: ./.github/workflows/actions/install
2546
- name: Test
2647
run: pnpm test
2748

2849
e2e:
2950
# Depend on build job to ensure the build is completed before running E2E tests
30-
needs: [build]
51+
# needs: [build]
3152
name: E2E
3253
timeout-minutes: 15
3354
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)