41
41
env :
42
42
CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
43
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+
44
45
- name : Code Coverage Report
45
46
uses : codecov/codecov-action@v1
46
47
with :
@@ -53,24 +54,27 @@ jobs:
53
54
deploy :
54
55
runs-on : ubuntu-latest
55
56
needs : test
56
- - name : Build PWA distribution for production
57
- run : |
58
- npm run build --if-present
59
- env :
60
- CI : true
61
- - name : Run Lighthouse PWA check against local production build
62
- uses : treosh/lighthouse-ci-action@v2
63
- with :
64
- # no urls needed, since it uses local folder to scan .html files
65
- # budgetPath: '.github/lighthouse/budget.json' # performance budgets
66
- configPath : ' .github/lighthouse/lighthouserc-static-dist-dir.yml'
67
- uploadArtifacts : true # save results as an action artifacts
68
- temporaryPublicStorage : true # upload lighthouse report to the temporary storage
69
- - name : Semantic Release
70
- if : github.event_name == 'push'
71
- run : npx semantic-release
72
- env :
73
- GITHUB_TOKEN : ${{ secrets.GITHUB_PAT }}
74
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
75
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
57
+ steps :
58
+ - name : Build PWA distribution for production
59
+ run : |
60
+ npm run build --if-present
61
+ env :
62
+ CI : true
63
+
64
+ - name : Run Lighthouse PWA check against local production build
65
+ uses : treosh/lighthouse-ci-action@v2
66
+ with :
67
+ # no urls needed, since it uses local folder to scan .html files
68
+ # budgetPath: '.github/lighthouse/budget.json' # performance budgets
69
+ configPath : ' .github/lighthouse/lighthouserc-static-dist-dir.yml'
70
+ uploadArtifacts : true # save results as an action artifacts
71
+ temporaryPublicStorage : true # upload lighthouse report to the temporary storage
72
+
73
+ - name : Semantic Release
74
+ if : github.event_name == 'push'
75
+ run : npx semantic-release
76
+ env :
77
+ GITHUB_TOKEN : ${{ secrets.GITHUB_PAT }}
78
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
79
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
76
80
0 commit comments