File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 5
5
branches : ['*'] # or change to match your default branch
6
6
push :
7
7
branches : ['*']
8
+ workflow_dispatch :
8
9
9
10
jobs :
10
11
test :
11
12
runs-on : ubuntu-latest
12
13
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Use Node.js
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : 22.13.1
22
+
23
+ - name : Install dependencies
24
+ run : npm ci
25
+
26
+ - name : Run Jest tests
27
+ run : npm run ci:test
28
+ test-coverage :
29
+ runs-on : ubuntu-latest
30
+
13
31
steps :
14
32
- name : Checkout code
15
33
uses : actions/checkout@v3
23
41
run : npm ci
24
42
25
43
- name : Run Jest tests with coverage
26
- run : npm run ci
44
+ run : npm run ci:test:coverage
45
+ lint :
46
+ runs-on : ubuntu-latest
47
+
48
+ steps :
49
+ - name : Checkout code
50
+ uses : actions/checkout@v4
51
+
52
+ - name : Use Node.js
53
+ uses : actions/setup-node@v4
54
+ with :
55
+ node-version : 22.13.1
56
+
57
+ - name : Install dependencies
58
+ run : npm ci
59
+
60
+ - name : Run linting
61
+ run : npm run lint
27
62
28
- - name : Check coverage thresholds
29
- run : npm run test :check-coverage-thresholds
63
+ - name : Check formatting with prettier
64
+ run : npm run format :check
Original file line number Diff line number Diff line change 6
6
"analyze-bundle" : " ng build --configuration=analyze-bundle && source-map-explorer dist/**/*.js --no-border-checks" ,
7
7
"build" : " ng build" ,
8
8
"ci" : " npm run lint && jest --coverage" ,
9
+ "ci:test" : " jest" ,
10
+ "ci:test:coverage" : " jest --coverage" ,
9
11
"docs" : " ./node_modules/.bin/compodoc -p tsconfig.docs.json --name 'OSF Angular Documentation' --theme 'laravel' -s" ,
10
12
"docs:coverage" : " ./node_modules/.bin/compodoc -p tsconfig.docs.json --coverageTest 0 --coverageMinimumPerFile 0" ,
11
13
"lint" : " ng lint" ,
You can’t perform that action at this time.
0 commit comments