File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Datamorph CI/CD - Test Build Deploy
33# Event when to trigger
44on :
55 push :
6- branches :
7- - main
86 tags :
97 - " v*"
108
Original file line number Diff line number Diff line change 1+ name : Datamorph CI/CD - Test Build Feature
2+
3+ on :
4+ push :
5+ branches :
6+ - feature/*
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Run tests
25+ run : npm run lint
26+
27+ build :
28+ runs-on : ubuntu-latest
29+ needs : test
30+
31+ steps :
32+ - name : Checkout code
33+ uses : actions/checkout@v4
34+
35+ - name : Setup Node.js
36+ uses : actions/setup-node@v4
37+ with :
38+ node-version : 20
39+
40+ - name : Install dependencies
41+ run : npm ci
42+
43+ - name : Build
44+ run : npm run build
Original file line number Diff line number Diff line change 1+ name : Datamorph CI/CD - Test Build Main
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Run tests
25+ run : npm run lint
26+
27+ build :
28+ runs-on : ubuntu-latest
29+ needs : test
30+
31+ steps :
32+ - name : Checkout code
33+ uses : actions/checkout@v4
34+
35+ - name : Setup Node.js
36+ uses : actions/setup-node@v4
37+ with :
38+ node-version : 20
39+
40+ - name : Install dependencies
41+ run : npm ci
42+
43+ - name : Build
44+ run : npm run build
You can’t perform that action at this time.
0 commit comments