fix unit test cache

This commit is contained in:
Marco Carrozzo
2023-01-19 16:45:23 +01:00
parent 2ba926bbd9
commit b6c9f6b085
+3 -14
View File
@@ -122,10 +122,6 @@ jobs:
with:
enable-global-nx-cache: false
enable-global-node-modules-cache: true
- name: show files
run: |
echo "====NODE MODULES===="
find node_modules -maxdepth 1 -type d || true
- name: run ci
if: steps.setup.outputs.cache-hit != 'true'
run: npm ci
@@ -173,15 +169,8 @@ jobs:
- uses: ./.github/actions/setup
with:
enable-global-nx-cache: true
enable-global-node-modules-cache: false
enable-global-node-modules-cache: true
cache-key-suffix: unit-tests-${{ matrix.unit-tests.name }}
- name: show files
run: |
echo "====NODE MODULES===="
find node_modules -maxdepth 1 -type d || true
# - uses: ./.github/actions/download-cache-and-artifacts
# with:
# packages: 'node_modules'
- name: Run unit tests
run: |
/usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }}
@@ -200,7 +189,7 @@ jobs:
- uses: ./.github/actions/setup
with:
enable-global-nx-cache: true
enable-global-node-modules-cache: false
enable-global-node-modules-cache: true
cache-key-suffix: lint
- uses: ./.github/actions/download-cache-and-artifacts
with:
@@ -220,7 +209,7 @@ jobs:
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: ./.github/actions/setup
with:
enable-global-nx-cache: false
enable-global-nx-cache: true
enable-global-node-modules-cache: true
cache-key-suffix: build-libs
# - uses: ./.github/actions/download-cache-and-artifacts