Skip to content

Commit 271d1b6

Browse files
codenemericallam
authored andcommitted
Run cli v3 e2e tests on publish action
1 parent 916795c commit 271d1b6

File tree

4 files changed

+51
-45
lines changed

4 files changed

+51
-45
lines changed

.github/workflows/cli-v3-e2e.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/e2e.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1-
name: "🧪 E2E Tests"
1+
name: "E2E"
22
on:
33
workflow_call:
4+
inputs:
5+
package:
6+
description: The identifier of the job to run
7+
default: webapp
8+
required: false
9+
type: string
410
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+
uses: pnpm/[email protected]
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 == ''
748
runs-on: buildjet-16vcpu-ubuntu-2204
849
steps:
950
- name: 🐳 Login to Docker Hub

.github/workflows/pr_checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ jobs:
2929

3030
# e2e:
3131
# uses: ./.github/workflows/e2e.yml
32+
# with:
33+
# package: webapp
3234
# secrets: inherit

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
uses: ./.github/workflows/unit-tests.yml
5050
secrets: inherit
5151

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
5557

5658
publish:
5759
needs: [typecheck, units]

0 commit comments

Comments
 (0)