2323 with :
2424 node-version : " 18.x"
2525 - name : Cache Node.js modules
26- uses : actions/cache@v2
26+ uses : actions/cache@v4
2727 with :
2828 # npm cache files are stored in `~/.npm` on Linux/macOS
2929 path : ~/.npm
4343 with :
4444 node-version : " 18.x"
4545 - name : Load Node.js modules
46- uses : actions/cache@v2
46+ uses : actions/cache@v4
4747 with :
4848 # npm cache files are stored in `~/.npm` on Linux/macOS
4949 path : ~/.npm
@@ -62,14 +62,14 @@ jobs:
6262 with :
6363 node-version : " 18.x"
6464 - name : Load Node.js modules
65- uses : actions/cache@v2
65+ uses : actions/cache@v4
6666 with :
6767 # npm cache files are stored in `~/.npm` on Linux/macOS
6868 path : ~/.npm
6969 key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
7070 - run : npm ci
7171 - run : npm run build
72-
72+
7373 test :
7474 needs : lint
7575 runs-on : ubuntu-latest
8080 with :
8181 node-version : " 18.x"
8282 - name : Load Node.js modules
83- uses : actions/cache@v2
83+ uses : actions/cache@v4
8484 with :
8585 # npm cache files are stored in `~/.npm` on Linux/macOS
8686 path : ~/.npm
@@ -91,10 +91,10 @@ jobs:
9191 uses : xom9ikk/dotenv@v2
9292 with :
9393 mode : test
94- # Not using Datadog Test Visibility action since we need to use the local
94+ # Not using Datadog Test Visibility action since we need to use the local
9595 # (patched) package for it to work with neverthrow
96- - name : run tests
97- env :
96+ - name : run tests
97+ env :
9898 NODE_OPTIONS : " -r dd-trace/ci/init"
9999 DD_CIVISIBILITY_ENABLED : true
100100 DD_CIVISIBILITY_AGENTLESS_ENABLED : true
@@ -135,7 +135,7 @@ jobs:
135135 with :
136136 node-version : ' 18.x'
137137 - name : Cache Node.js modules
138- uses : actions/cache@v2
138+ uses : actions/cache@v4
139139 with :
140140 # npm cache files are stored in `~/.npm` on Linux/macOS
141141 path : ~/.npm
@@ -144,15 +144,15 @@ jobs:
144144 ${{ runner.OS }}-node-
145145 ${{ runner.OS }}-
146146 - name : Inject DataDog API key
147- env :
147+ env :
148148 DD_API_KEY : ${{ secrets.DD_API_KEY }}
149149 run : sed -i -e "s#@DD_API_KEY#$DD_API_KEY#g" .ebextensions/99datadog.config
150150 - name : Install NPM
151151 run : npm ci
152152 - name : Build application
153153 run : npm run build
154154 - name : Zip application
155- run : zip -r "deploy.zip" * .platform .ebextensions -x .env-example .gitignore package-lock.json
155+ run : zip -r "deploy.zip" * .platform .ebextensions -x .env-example .gitignore package-lock.json
156156 - name : Get timestamp
157157 shell : bash
158158 run : echo "##[set-output name=timestamp;]$(env TZ=Asia/Singapore date '+%Y%m%d%H%M%S')"
@@ -204,4 +204,3 @@ jobs:
204204 if : needs.gatekeep.outputs.proceed == 'true'
205205 uses : ./.github/workflows/deploy_prod.yml
206206 secrets : inherit
207-
0 commit comments