File tree Expand file tree Collapse file tree 3 files changed +33
-36
lines changed
Expand file tree Collapse file tree 3 files changed +33
-36
lines changed Original file line number Diff line number Diff line change 11name : OpisDeploy
22
33on :
4- workflow_run :
5- workflows : ["OpisTesting"]
6- types :
7- - completed
4+ workflow_dispatch :
85
96permissions :
107 contents : write
@@ -15,37 +12,24 @@ jobs:
1512 build :
1613 runs-on : ubuntu-latest
1714 steps :
18- - name : checkout code
19- uses : actions/checkout@v4
20-
21- - name : setup node.js
22- uses : actions/setup-node@v3
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-node@v3
2317 with :
2418 node-version : " 24.13.0"
25-
26- - name : install dependencies
27- run : npm ci
28-
29- - name : build opis app
30- run : npm run build
19+ - run : npm ci
20+ - run : npm run build
3121
3222 deploy :
3323 runs-on : ubuntu-latest
3424 needs : build
3525 steps :
36- - name : checkout code
37- uses : actions/checkout@v4
38-
39- - name : setup node.js
40- uses : actions/setup-node@v3
26+ - uses : actions/checkout@v4
27+ - uses : actions/setup-node@v3
4128 with :
4229 node-version : " 24.13.0"
43-
44- - name : install dependencies
45- run : npm ci
46-
30+ - run : npm ci
4731 - name : deploy opis app
4832 uses : JamesIves/github-pages-deploy-action@v4
4933 with :
5034 branch : gh-pages
51- folder : dist/opis-manager
35+ folder : dist/opis-manager
Original file line number Diff line number Diff line change @@ -10,13 +10,20 @@ jobs:
1010 lint_job :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : checkout code lint
14- uses : actions/checkout@v4
13+ - uses : actions/checkout@v4
1514 - name : setup node.js
1615 uses : actions/setup-node@v3
1716 with :
1817 node-version : " 24.13.0"
19- - name : install dependencies
20- run : npm ci
21- - name : lint code
22- run : npm run lint:fix
18+ - run : npm ci
19+ - run : npm run lint:fix
20+
21+ trigger_test :
22+ needs : lint_job
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Trigger test workflow
26+ uses : benc-uk/workflow-dispatch@v1
27+ with :
28+ workflow : tests.yml
29+ ref : ${{ github.head_ref }}
Original file line number Diff line number Diff line change 11name : OpisTesting
22
33on :
4- workflow_run :
5- workflows : ["OpisLint"]
6- types :
7- - completed
8-
4+ workflow_dispatch :
95
106permissions :
117 contents : read
3430 with :
3531 name : coverage-report
3632 path : coverage
33+
34+ trigger_deploy :
35+ needs : test_job
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Trigger deploy workflow
39+ uses : benc-uk/workflow-dispatch@v1
40+ with :
41+ workflow : deploy.yml
42+ ref : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments