8
8
test :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Start Measurement
12
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
13
+ with :
14
+ task : start-measurement
15
+ continue-on-error : true
11
16
- uses : actions/checkout@v4
17
+ - name : Checkout Repo Measurement
18
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
19
+ with :
20
+ task : get-measurement
21
+ label : ' repo checkout'
22
+ continue-on-error : true
12
23
- uses : actions/setup-node@v4
13
24
with :
14
25
node-version : ' 20'
@@ -25,12 +36,30 @@ jobs:
25
36
${{ runner.os }}-
26
37
- name : Install
27
38
run : yarn --immutable
39
+ - name : Setup and install Measurment
40
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
41
+ with :
42
+ task : get-measurement
43
+ label : ' setup-and-install'
44
+ continue-on-error : true
28
45
- name : Build
29
46
run : yarn build
47
+ - name : Build Measurment
48
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
49
+ with :
50
+ task : get-measurement
51
+ label : ' build'
52
+ continue-on-error : true
30
53
- name : Unit Tests
31
54
run : yarn test
32
55
- name : Lint
33
56
run : yarn lint
57
+ - name : Test and Lint Measurment
58
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
59
+ with :
60
+ task : get-measurement
61
+ label : ' test-and-lint'
62
+ continue-on-error : true
34
63
- name : Install, build and start demo app
35
64
run : |
36
65
cd examples/my-ngsw-app
41
70
cd examples/my-ngsw-app
42
71
npx playwright install chromium
43
72
npm run test:e2e
73
+ - name : E2E tests Measurment
74
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
75
+ with :
76
+ task : get-measurement
77
+ label : ' e2e-test'
78
+ continue-on-error : true
79
+ - name : Show Energy Results
80
+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
81
+ with :
82
+ task : display-results
83
+ continue-on-error : true
0 commit comments