Skip to content

Commit 007a015

Browse files
authored
Merge branch 'cli-deno-support' into main
2 parents e395fb9 + 70410d3 commit 007a015

File tree

259 files changed

+12096
-2316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+12096
-2316
lines changed

.changeset/fair-plums-grin.md

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

.changeset/flat-olives-grab.md

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

.changeset/sour-jars-punch.md

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

.changeset/warm-carrots-float.md

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

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: true
22
contact_links:
33
- name: Ask a Question
44
url: https://trigger.dev/discord

.github/workflows/e2e.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: "🧪 E2E Tests"
2+
on:
3+
workflow_call:
4+
jobs:
5+
e2e:
6+
name: "🧪 E2E Tests"
7+
runs-on: buildjet-4vcpu-ubuntu-2204
8+
steps:
9+
- name: 🐳 Login to Docker Hub
10+
uses: docker/login-action@v2
11+
with:
12+
username: ${{ secrets.DOCKERHUB_USERNAME }}
13+
password: ${{ secrets.DOCKERHUB_TOKEN }}
14+
15+
- name: ⬇️ Checkout repo
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: ⎔ Setup pnpm
21+
uses: pnpm/[email protected]
22+
with:
23+
version: 7.18
24+
25+
- name: ⎔ Setup node
26+
uses: buildjet/setup-node@v3
27+
with:
28+
node-version: 18
29+
cache: "pnpm"
30+
31+
- name: 📥 Download deps
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Install Playwright Browsers
35+
run: npx playwright install --with-deps
36+
37+
- name: Run Playwright tests
38+
run: |
39+
# Setup environment variables
40+
cp ./.env.example ./.env
41+
cp ./references/nextjs-test/.env.example ./references/nextjs-test/.env.local
42+
43+
# Build packages
44+
pnpm run build --filter @references/nextjs-test^...
45+
pnpm --filter @trigger.dev/database generate
46+
47+
# Move trigger-cli bin to correct place
48+
pnpm install --frozen-lockfile
49+
50+
# Execute tests
51+
pnpm run docker
52+
pnpm run db:migrate
53+
pnpm run db:seed
54+
pnpm run test:e2e
55+
56+
# Cleanup
57+
pnpm run docker:stop
58+
59+
- name: Upload Playwright report
60+
uses: actions/upload-artifact@v3
61+
if: always()
62+
with:
63+
name: playwright-report
64+
path: playwright-report/
65+
retention-days: 30

.github/workflows/pr_checks.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 🤖 PR Checks
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
- ".github/CODEOWNERS"
10+
- ".github/ISSUE_TEMPLATE/**"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
id-token: write
19+
20+
jobs:
21+
typecheck:
22+
uses: ./.github/workflows/typecheck.yml
23+
secrets: inherit
24+
25+
units:
26+
uses: ./.github/workflows/unit-tests.yml
27+
secrets: inherit
28+
29+
e2e:
30+
uses: ./.github/workflows/e2e.yml
31+
secrets: inherit

.github/workflows/publish.yml

Lines changed: 8 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -38,125 +38,19 @@ env:
3838

3939
jobs:
4040
typecheck:
41-
name: ʦ TypeScript
42-
runs-on: buildjet-4vcpu-ubuntu-2204
43-
steps:
44-
- name: ⬇️ Checkout repo
45-
uses: actions/checkout@v3
46-
with:
47-
fetch-depth: 0
41+
uses: ./.github/workflows/typecheck.yml
42+
secrets: inherit
4843

49-
- name: ⎔ Setup pnpm
50-
uses: pnpm/[email protected]
51-
with:
52-
version: 7.18
53-
54-
- name: ⎔ Setup node
55-
uses: buildjet/setup-node@v3
56-
with:
57-
node-version: 18
58-
cache: "pnpm"
59-
60-
- name: 📥 Download deps
61-
run: pnpm install --frozen-lockfile
62-
63-
- name: 📀 Generate Prisma Client
64-
run: pnpm run generate
65-
66-
- name: 🔎 Type check
67-
run: pnpm run typecheck --filter webapp
68-
69-
unitTests:
70-
name: Unit Tests
71-
runs-on: buildjet-4vcpu-ubuntu-2204
72-
steps:
73-
- name: ⬇️ Checkout repo
74-
uses: actions/checkout@v3
75-
with:
76-
fetch-depth: 0
77-
78-
- name: ⎔ Setup pnpm
79-
uses: pnpm/[email protected]
80-
with:
81-
version: 7.18
82-
83-
- name: ⎔ Setup node
84-
uses: buildjet/setup-node@v3
85-
with:
86-
node-version: 18
87-
cache: "pnpm"
88-
89-
- name: 📥 Download deps
90-
run: pnpm install --frozen-lockfile
91-
92-
- name: Run Unit Tests
93-
run: |
94-
pnpm run test
44+
units:
45+
uses: ./.github/workflows/unit-tests.yml
46+
secrets: inherit
9547

9648
e2e:
97-
name: e2e Tests
98-
runs-on: buildjet-4vcpu-ubuntu-2204
99-
steps:
100-
- name: 🐳 Login to Docker Hub
101-
uses: docker/login-action@v2
102-
with:
103-
username: ${{ secrets.DOCKERHUB_USERNAME }}
104-
password: ${{ secrets.DOCKERHUB_TOKEN }}
105-
106-
- name: ⬇️ Checkout repo
107-
uses: actions/checkout@v3
108-
with:
109-
fetch-depth: 0
110-
111-
- name: ⎔ Setup pnpm
112-
uses: pnpm/[email protected]
113-
with:
114-
version: 7.18
115-
116-
- name: ⎔ Setup node
117-
uses: buildjet/setup-node@v3
118-
with:
119-
node-version: 18
120-
cache: "pnpm"
121-
122-
- name: 📥 Download deps
123-
run: pnpm install --frozen-lockfile
124-
125-
- name: Install Playwright Browsers
126-
run: npx playwright install --with-deps
127-
128-
- name: Run Playwright tests
129-
run: |
130-
# Setup environment variables
131-
cp ./.env.example ./.env
132-
cp ./references/nextjs-test/.env.example ./references/nextjs-test/.env.local
133-
134-
# Build packages
135-
pnpm run build --filter @references/nextjs-test^...
136-
pnpm --filter @trigger.dev/database generate
137-
138-
# Move trigger-cli bin to correct place
139-
pnpm install --frozen-lockfile
140-
141-
# Execute tests
142-
pnpm run docker
143-
pnpm run db:migrate
144-
pnpm run db:seed
145-
pnpm run test:e2e
146-
147-
# Cleanup
148-
pnpm run docker:stop
149-
150-
- name: Upload Playwright report
151-
uses: actions/upload-artifact@v3
152-
if: always()
153-
with:
154-
name: playwright-report
155-
path: playwright-report/
156-
retention-days: 30
49+
uses: ./.github/workflows/e2e.yml
50+
secrets: inherit
15751

15852
publish:
159-
needs: [typecheck, unitTests, e2e]
53+
needs: [typecheck, units, e2e]
16054
runs-on: buildjet-4vcpu-ubuntu-2204
16155
outputs:
16256
version: ${{ steps.get_version.outputs.version }}

.github/workflows/release.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- ".github/workflows/release.yml"
9-
- "packages/**"
10-
- "!packages/**/*.md"
11-
- ".changeset/**"
12-
- "integrations/**"
13-
- "!integrations/**/*.md"
14-
- "pnpm-lock.yaml"
15-
- "pnpm-workspace.yaml"
16-
- "turbo.json"
7+
paths-ignore:
8+
- "**.md"
9+
- ".github/CODEOWNERS"
10+
- ".github/ISSUE_TEMPLATE/**"
11+
1712

1813
jobs:
1914
release:

.github/workflows/typecheck.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "ʦ TypeScript"
2+
on:
3+
workflow_call:
4+
jobs:
5+
typecheck:
6+
runs-on: buildjet-4vcpu-ubuntu-2204
7+
8+
steps:
9+
- name: ⬇️ Checkout repo
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
14+
- name: ⎔ Setup pnpm
15+
uses: pnpm/[email protected]
16+
with:
17+
version: 7.18
18+
19+
- name: ⎔ Setup node
20+
uses: buildjet/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: "pnpm"
24+
25+
- name: 📥 Download deps
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: 📀 Generate Prisma Client
29+
run: pnpm run generate
30+
31+
- name: 🔎 Type check
32+
run: pnpm run typecheck --filter webapp

0 commit comments

Comments
 (0)