File tree Expand file tree Collapse file tree 4 files changed +51
-45
lines changed Expand file tree Collapse file tree 4 files changed +51
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : " 🧪 E2E Tests "
1
+ name : " E2E"
2
2
on :
3
3
workflow_call :
4
+ inputs :
5
+ package :
6
+ description : The identifier of the job to run
7
+ default : webapp
8
+ required : false
9
+ type : string
4
10
jobs :
5
- e2e :
6
- name : " 🧪 E2E Tests"
11
+ cli-v3 :
12
+ name : " 🧪 CLI v3 tests"
13
+ if : inputs.package == 'cli-v3' || inputs.package == ''
14
+ runs-on : buildjet-8vcpu-ubuntu-2204
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ package-manager : ["npm", "pnpm", "yarn"]
19
+ steps :
20
+ - name : ⬇️ Checkout repo
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - name : ⎔ Setup pnpm
26
+
27
+ with :
28
+ version : 8.15.5
29
+
30
+ - name : ⎔ Setup node
31
+ uses : buildjet/setup-node@v3
32
+ with :
33
+ node-version : 20.11.1
34
+ cache : " pnpm"
35
+
36
+ - name : 📥 Download deps
37
+ run : pnpm install --frozen-lockfile --filter trigger.dev...
38
+
39
+ - name : 🔧 Build monorepo deps
40
+ run : pnpm build --filter trigger.dev...
41
+
42
+ - name : Run E2E Tests
43
+ run : |
44
+ PM=${{ matrix.package-manager }} pnpm --filter trigger.dev run test:e2e
45
+ webapp :
46
+ name : " 🧪 Webapp tests"
47
+ if : inputs.package == 'webapp' || inputs.package == ''
7
48
runs-on : buildjet-16vcpu-ubuntu-2204
8
49
steps :
9
50
- name : 🐳 Login to Docker Hub
Original file line number Diff line number Diff line change 29
29
30
30
# e2e:
31
31
# uses: ./.github/workflows/e2e.yml
32
+ # with:
33
+ # package: webapp
32
34
# secrets: inherit
Original file line number Diff line number Diff line change 49
49
uses : ./.github/workflows/unit-tests.yml
50
50
secrets : inherit
51
51
52
- # e2e:
53
- # uses: ./.github/workflows/e2e.yml
54
- # secrets: inherit
52
+ e2e :
53
+ uses : ./.github/workflows/e2e.yml
54
+ with :
55
+ package : cli-v3
56
+ secrets : inherit
55
57
56
58
publish :
57
59
needs : [typecheck, units]
You can’t perform that action at this time.
0 commit comments