File tree Expand file tree Collapse file tree 3 files changed +44
-44
lines changed Expand file tree Collapse file tree 3 files changed +44
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : GitHub Apps Tests
2
2
3
3
on :
4
- workflow_call : {}
4
+ push :
5
+ branches : [main, develop]
6
+ paths :
7
+ - " openci-runner/github-apps/**"
8
+ - " .github/workflows/github-apps-tests.yml"
9
+ - " .github/workflows/github-apps-tests-runner.yml"
10
+ pull_request :
11
+ branches : [main, develop]
12
+ paths :
13
+ - " openci-runner/github-apps/**"
14
+ - " .github/workflows/github-apps-tests.yml"
15
+ - " .github/workflows/github-apps-tests-runner.yml"
5
16
6
17
jobs :
7
- test :
8
- runs-on : ubuntu-latest
9
- permissions :
10
- contents : read
11
- strategy :
12
- matrix :
13
- node-version : [20, 22]
14
- defaults :
15
- run :
16
- working-directory : openci-runner/github-apps
17
- steps :
18
- - name : Checkout repository
19
- uses : actions/checkout@v4
20
-
21
- - name : Set up Node.js
22
- uses : actions/setup-node@v4
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
-
26
- - name : Install dependencies
27
- run : npm ci
28
-
29
- - name : Run tests
30
- run : npm test
18
+ call-tests :
19
+ uses : ./.github/workflows/github-apps-tests.yml
Original file line number Diff line number Diff line change
1
+ name : Reusable GitHub Apps Tests
2
+
3
+ on :
4
+ workflow_call : {}
5
+
6
+ jobs :
7
+ test :
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ strategy :
12
+ matrix :
13
+ node-version : [20, 22]
14
+ defaults :
15
+ run :
16
+ working-directory : openci-runner/github-apps
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Set up Node.js
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+
26
+ - name : Install dependencies
27
+ run : npm ci
28
+
29
+ - name : Run tests
30
+ run : npm test
You can’t perform that action at this time.
0 commit comments