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 - uses: ./.github/actions/download-cache-and-artifacts
with: with:
persistent-packages: 'nxcache' 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 - name: Run unit tests
run: | run: |
/usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }} /usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }}
- uses: ./.github/actions/upload-cache-and-artifacts - uses: ./.github/actions/upload-cache-and-artifacts
with: with:
persistent-packages: 'nxcache' 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: lint:
# long timeout required when cache has to be recreated # long timeout required when cache has to be recreated
timeout-minutes: 30 timeout-minutes: 30
@@ -194,7 +194,7 @@ jobs:
- uses: ./.github/actions/upload-cache-and-artifacts - uses: ./.github/actions/upload-cache-and-artifacts
with: with:
persistent-packages: 'nxcache' persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}-lint packages-key-suffix: ${{ github.ref_name }}-lint
build-libs: build-libs:
# long timeout required when cache has to be recreated # long timeout required when cache has to be recreated
@@ -216,7 +216,7 @@ jobs:
with: with:
packages: 'node_modules' packages: 'node_modules'
persistent-packages: 'nxcache' 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 affected:build $NX_CALCULATION_FLAGS --prod
- run: nx build demoshell --configuration production - run: nx build demoshell --configuration production
@@ -225,7 +225,7 @@ jobs:
with: with:
packages: 'dist node_modules' packages: 'dist node_modules'
persistent-packages: 'nxcache' persistent-packages: 'nxcache'
persistent-packages-key-suffix: ${{ github.ref_name }}-build-libs packages-key-suffix: ${{ github.ref_name }}-build-libs
e2e-storybook: e2e-storybook:
timeout-minutes: 20 timeout-minutes: 20