@@ -6,6 +6,9 @@ name: Build
66# Run this Build for all pushes / PRs to current branch
77on : [push, pull_request]
88
9+ permissions :
10+ contents : read # to fetch code (actions/checkout)
11+
912jobs :
1013 tests :
1114 runs-on : ubuntu-latest
@@ -29,11 +32,11 @@ jobs:
2932 steps :
3033 # https://github.com/actions/checkout
3134 - name : Checkout codebase
32- uses : actions/checkout@v2
35+ uses : actions/checkout@v3
3336
3437 # https://github.com/actions/setup-node
3538 - name : Install Node.js ${{ matrix.node-version }}
36- uses : actions/setup-node@v2
39+ uses : actions/setup-node@v3
3740 with :
3841 node-version : ${{ matrix.node-version }}
3942
5861 id : yarn-cache-dir-path
5962 run : echo "::set-output name=dir::$(yarn cache dir)"
6063 - name : Cache Yarn dependencies
61- uses : actions/cache@v2
64+ uses : actions/cache@v3
6265 with :
6366 # Cache entire Yarn cache directory (see previous step)
6467 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
8588 # Upload coverage reports to Codecov (for one version of Node only)
8689 # https://github.com/codecov/codecov-action
8790 - name : Upload coverage to Codecov.io
88- uses : codecov/codecov-action@v2
91+ uses : codecov/codecov-action@v3
8992 if : matrix.node-version == '16.x'
9093
9194 # Using docker-compose start backend using CI configuration
@@ -100,7 +103,7 @@ jobs:
100103 # https://github.com/cypress-io/github-action
101104 # (NOTE: to run these e2e tests locally, just use 'ng e2e')
102105 - name : Run e2e tests (integration tests)
103- uses : cypress-io/github-action@v2
106+ uses : cypress-io/github-action@v4
104107 with :
105108 # Run tests in Chrome, headless mode
106109 browser : chrome
@@ -116,7 +119,7 @@ jobs:
116119 # Cypress always creates a video of all e2e tests (whether they succeeded or failed)
117120 # Save those in an Artifact
118121 - name : Upload e2e test videos to Artifacts
119- uses : actions/upload-artifact@v2
122+ uses : actions/upload-artifact@v3
120123 if : always()
121124 with :
122125 name : e2e-test-videos
@@ -125,7 +128,7 @@ jobs:
125128 # If e2e tests fail, Cypress creates a screenshot of what happened
126129 # Save those in an Artifact
127130 - name : Upload e2e test failure screenshots to Artifacts
128- uses : actions/upload-artifact@v2
131+ uses : actions/upload-artifact@v3
129132 if : failure()
130133 with :
131134 name : e2e-test-screenshots
0 commit comments