Skip to content

Commit 332a0b3

Browse files
committed
Breaks CI GHA into separate workflow with implicit synchronize trigger
1 parent 7913af2 commit 332a0b3

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

.github/workflows/pr-ci-tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Pull Request CI Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- 'gh-pages'
6+
jobs:
7+
Run-Pull-Request-CI-Tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v5
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '20.x'
17+
18+
- name: Install dependencies
19+
run: npm install jest jest-environment-jsdom liquidjs gray-matter js-yaml --save-dev
20+
working-directory: ./tests
21+
22+
- name: Run Jest Tests
23+
run: npm test
24+
working-directory: ./tests

.github/workflows/pull-request-trigger.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,3 @@ jobs:
2020
script: |
2121
const script = require('./github-actions/trigger-pr/check-linked-issue.js')
2222
script({g: github, c: context})
23-
24-
Run-CI-Tests:
25-
runs-on: ubuntu-latest
26-
if: ${{ github.event.action == 'opened' || github.event.action == 'edited' }}
27-
steps:
28-
- name: Checkout repository
29-
uses: actions/checkout@v5
30-
31-
- name: Set up Node.js
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version: '20.x'
35-
36-
- name: Install dependencies
37-
run: npm install jest jest-environment-jsdom liquidjs gray-matter js-yaml --save-dev
38-
working-directory: ./tests
39-
40-
- name: Run Jest Tests
41-
run: npm test
42-
working-directory: ./tests

0 commit comments

Comments
 (0)