Skip to content

Commit e05f226

Browse files
committed
revert: aliased workflow steps
1 parent 51c4899 commit e05f226

1 file changed

Lines changed: 10 additions & 53 deletions

File tree

.github/workflows/quality-checks-devcontainer.yml

Lines changed: 10 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,8 @@ jobs:
196196
outputs:
197197
docker_images: ${{ steps.normalized_docker_images.outputs.images }}
198198
steps:
199-
- name: copy .tool-versions
200-
run: |
201-
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
202-
203-
- name: Checkout code
204-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
205-
with:
206-
ref: ${{ env.BRANCH_NAME }}
207-
fetch-depth: 0
199+
- *init_tool_versions
200+
- *checkout
208201
- name: Determine docker images to scan
209202
id: normalized_docker_images
210203
env:
@@ -279,28 +272,10 @@ jobs:
279272
matrix:
280273
docker_image: ${{ fromJson(needs.get_docker_images_to_scan.outputs.docker_images) }}
281274
steps:
282-
- name: copy .tool-versions
283-
run: |
284-
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
285-
286-
- name: Checkout code
287-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
288-
with:
289-
ref: ${{ env.BRANCH_NAME }}
290-
fetch-depth: 0
291-
292-
- name: Setting up .npmrc
293-
env:
294-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
295-
run: |
296-
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
297-
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc
298-
299-
- name: Cache npm dependencies
300-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7
301-
with:
302-
path: ./node_modules
303-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
275+
- *init_tool_versions
276+
- *checkout
277+
- *setup_npmrc
278+
- *cache_npm
304279

305280
- name: make install
306281
run: |
@@ -332,28 +307,10 @@ jobs:
332307
run:
333308
shell: bash
334309
steps:
335-
- name: copy .tool-versions
336-
run: |
337-
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
338-
339-
- name: Checkout code
340-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
341-
with:
342-
ref: ${{ env.BRANCH_NAME }}
343-
fetch-depth: 0
344-
345-
- name: Setting up .npmrc
346-
env:
347-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
348-
run: |
349-
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
350-
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc
351-
352-
- name: Cache npm dependencies
353-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7
354-
with:
355-
path: ./node_modules
356-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
310+
- *init_tool_versions
311+
- *checkout
312+
- *setup_npmrc
313+
- *cache_npm
357314

358315
- name: Check for SAM templates
359316
id: check_sam_templates

0 commit comments

Comments
 (0)