Skip to content

Commit 9af1a01

Browse files
authored
chore(CI): run new pattern tests in parallel (#1863)
## Summary Refactors pattern tests integration tests to run as a separate parallel CI job instead of running sequentially within the main integration test job. ## Changes - Created new dedicated `pattern-tests-integration-test` job in the GitHub Actions workflow - Removed pattern tests step from the main `integration-test` job - Updated pattern tests to run with `--parallel` flag for faster execution
1 parent 5f584ce commit 9af1a01

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/deno.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ jobs:
118118
API_URL=http://localhost:8000/ \
119119
deno task integration
120120
121-
- name: 🧪 Run pattern-tests integration tests
122-
working-directory: packages/pattern-tests
123-
run: |
124-
HEADLESS=1 \
125-
API_URL=http://localhost:8000/ \
126-
deno task integration
127-
128121
cli-integration-test:
129122
name: "CLI Integration Tests"
130123
runs-on: ubuntu-latest
@@ -187,6 +180,22 @@ jobs:
187180
API_URL=http://localhost:8000/ \
188181
deno task integration
189182
183+
pattern-tests-integration-test:
184+
name: "Pattern Tests Integration Tests"
185+
runs-on: ubuntu-latest
186+
needs: ["build"]
187+
environment: ci
188+
steps:
189+
- name: 📥 Checkout repository
190+
uses: actions/checkout@v4
191+
192+
- name: 🦕 Setup Deno
193+
uses: ./.github/actions/deno-setup
194+
195+
- name: 🧪 Run pattern tests integration tests
196+
working-directory: packages/pattern-tests
197+
run: deno task integration
198+
190199
attest-binaries:
191200
name: "Attest and Upload Binaries"
192201
if: github.ref == 'refs/heads/main'

packages/pattern-tests/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@commontools/pattern-tests",
33
"tasks": {
4-
"integration": "LOG_LEVEL=warn deno test --trace-leaks -A ./integration/*.test.ts",
4+
"integration": "LOG_LEVEL=warn deno test --trace-leaks -A --parallel ./integration/*.test.ts",
55
"test": "echo 'No tests defined.'"
66
},
77
"lint": {

0 commit comments

Comments
 (0)