mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
fix unit test cache
This commit is contained in:
@@ -122,10 +122,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enable-global-nx-cache: false
|
enable-global-nx-cache: false
|
||||||
enable-global-node-modules-cache: true
|
enable-global-node-modules-cache: true
|
||||||
- name: show files
|
|
||||||
run: |
|
|
||||||
echo "====NODE MODULES===="
|
|
||||||
find node_modules -maxdepth 1 -type d || true
|
|
||||||
- name: run ci
|
- name: run ci
|
||||||
if: steps.setup.outputs.cache-hit != 'true'
|
if: steps.setup.outputs.cache-hit != 'true'
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -173,15 +169,8 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
enable-global-nx-cache: true
|
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 }}
|
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
|
- 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 }}
|
||||||
@@ -200,7 +189,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
enable-global-nx-cache: true
|
enable-global-nx-cache: true
|
||||||
enable-global-node-modules-cache: false
|
enable-global-node-modules-cache: true
|
||||||
cache-key-suffix: lint
|
cache-key-suffix: lint
|
||||||
- uses: ./.github/actions/download-cache-and-artifacts
|
- uses: ./.github/actions/download-cache-and-artifacts
|
||||||
with:
|
with:
|
||||||
@@ -220,7 +209,7 @@ jobs:
|
|||||||
fetch-depth: 0 # Fetch all history for all tags and branches
|
fetch-depth: 0 # Fetch all history for all tags and branches
|
||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
enable-global-nx-cache: false
|
enable-global-nx-cache: true
|
||||||
enable-global-node-modules-cache: true
|
enable-global-node-modules-cache: true
|
||||||
cache-key-suffix: build-libs
|
cache-key-suffix: build-libs
|
||||||
# - uses: ./.github/actions/download-cache-and-artifacts
|
# - uses: ./.github/actions/download-cache-and-artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user