File tree Expand file tree Collapse file tree 4 files changed +76
-106
lines changed
Expand file tree Collapse file tree 4 files changed +76
-106
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Opis CI/CD
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - " **"
7+ push :
8+ branches :
9+ - main
10+
11+ permissions :
12+ contents : write
13+ pages : write
14+ id-token : write
15+
16+ jobs :
17+ lint :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v3
24+ with :
25+ node-version : " 24.13.0"
26+ - run : npm ci
27+ - run : npm run lint:fix
28+
29+ test :
30+ needs : lint
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Checkout code
34+ uses : actions/checkout@v4
35+ - name : Setup Node.js
36+ uses : actions/setup-node@v3
37+ with :
38+ node-version : " 24.13.0"
39+ - run : npm ci
40+ - run : npm run test:coverage
41+ - name : Upload coverage report
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : coverage-report
45+ path : coverage
46+
47+ build :
48+ needs : test
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : Checkout code
52+ uses : actions/checkout@v4
53+ - name : Setup Node.js
54+ uses : actions/setup-node@v3
55+ with :
56+ node-version : " 24.13.0"
57+ - run : npm ci
58+ - run : npm run build
59+
60+ deploy :
61+ needs : build
62+ runs-on : ubuntu-latest
63+ if : github.event_name == 'push' && github.ref == 'refs/heads/main' # deploy solo su main
64+ steps :
65+ - name : Checkout code
66+ uses : actions/checkout@v4
67+ - name : Setup Node.js
68+ uses : actions/setup-node@v3
69+ with :
70+ node-version : " 24.13.0"
71+ - run : npm ci
72+ - name : Deploy Opis App
73+ uses : JamesIves/github-pages-deploy-action@v4
74+ with :
75+ branch : gh-pages
76+ folder : dist/opis-manager
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments