88 test :
99 runs-on : ubuntu-latest
1010 steps :
11+ - name : Start Measurement
12+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
13+ with :
14+ task : start-measurement
15+ electricitymaps-api-token : ${{ secrets.EMAPS_API_TOKEN }}
16+ continue-on-error : true
1117 - uses : actions/checkout@v4
18+ - name : Checkout Repo Measurement
19+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
20+ with :
21+ task : get-measurement
22+ label : ' repo checkout'
23+ continue-on-error : true
1224 - uses : actions/setup-node@v4
1325 with :
1426 node-version : ' 20'
@@ -25,12 +37,30 @@ jobs:
2537 ${{ runner.os }}-
2638 - name : Install
2739 run : yarn --immutable
40+ - name : Setup and install Measurment
41+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
42+ with :
43+ task : get-measurement
44+ label : ' setup-and-install'
45+ continue-on-error : true
2846 - name : Build
2947 run : yarn build
48+ - name : Build Measurment
49+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
50+ with :
51+ task : get-measurement
52+ label : ' build'
53+ continue-on-error : true
3054 - name : Unit Tests
3155 run : yarn test
3256 - name : Lint
3357 run : yarn lint
58+ - name : Test and Lint Measurment
59+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
60+ with :
61+ task : get-measurement
62+ label : ' test-and-lint'
63+ continue-on-error : true
3464 - name : Install, build and start demo app
3565 run : |
3666 cd examples/my-ngsw-app
4171 cd examples/my-ngsw-app
4272 npx playwright install chromium
4373 npm run test:e2e
74+ - name : E2E tests Measurment
75+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
76+ with :
77+ task : get-measurement
78+ label : ' e2e-test'
79+ continue-on-error : true
80+ - name : Show Energy Results
81+ uses : green-coding-solutions/eco-ci-energy-estimation@v4
82+ with :
83+ task : display-results
84+ continue-on-error : true
0 commit comments