Skip to content

Commit adee573

Browse files
committed
Only run npm install if running e2e tests
1 parent 48052c5 commit adee573

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/actions/acceptance-tests-component/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ runs:
1919

2020
steps:
2121

22+
- name: Repo setup
23+
uses: ./.github/actions/node-install
24+
with:
25+
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
26+
2227
- name: Fetch terraform output
2328
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
2429
with:

.github/actions/acceptance-tests-e2e/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ runs:
4747
echo "proxy_deployed=false" >> $GITHUB_OUTPUT
4848
fi
4949
50-
- name: Install poetry and e2e test dependencies
50+
- name: Repo setup
5151
if: ${{ steps.check_proxy_deployed.outputs.proxy_deployed == 'true' }}
52+
uses: ./.github/actions/node-install
53+
with:
54+
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
55+
56+
- name: Install poetry and e2e test dependencies
5257
shell: bash
5358
run: |
5459
pipx install poetry

.github/actions/acceptance-tests/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ runs:
2424

2525
steps:
2626

27-
- name: Repo setup
28-
uses: ./.github/actions/node-install
29-
with:
30-
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
3127
- name: Run component tests
3228
if: ${{ inputs.testType != 'e2e' }}
3329
uses: ./.github/actions/acceptance-tests-component

0 commit comments

Comments
 (0)