fix cache key

This commit is contained in:
Marco Carrozzo
2023-01-20 15:34:11 +01:00
parent 95f5ed4828
commit 1fc9f0f3e1
+5 -5
View File
@@ -162,14 +162,14 @@ jobs:
- uses: ./.github/actions/download-cache-and-artifacts
with:
persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}/${{ matrix.unit-tests.name }}
packages-key-suffix: ${{ github.ref_name }}/${{ matrix.unit-tests.name }}
- name: Run unit tests
run: |
/usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }}
- uses: ./.github/actions/upload-cache-and-artifacts
with:
persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}/${{ matrix.unit-tests.name }}
packages-key-suffix: ${{ github.ref_name }}/${{ matrix.unit-tests.name }}
lint:
# long timeout required when cache has to be recreated
timeout-minutes: 30
@@ -194,7 +194,7 @@ jobs:
- uses: ./.github/actions/upload-cache-and-artifacts
with:
persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}-lint
packages-key-suffix: ${{ github.ref_name }}-lint
build-libs:
# long timeout required when cache has to be recreated
@@ -216,7 +216,7 @@ jobs:
with:
packages: 'node_modules'
persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}-build-libs
packages-key-suffix: ${{ github.ref_name }}-build-libs
- run: nx affected:build $NX_CALCULATION_FLAGS --prod
- run: nx build demoshell --configuration production
@@ -225,7 +225,7 @@ jobs:
with:
packages: 'dist node_modules'
persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}-build-libs
packages-key-suffix: ${{ github.ref_name }}-build-libs
e2e-storybook:
timeout-minutes: 20