Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Feb 28, 2024
1 parent a07d9ed commit 622a629
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
test_x86_x64:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, windows-2019 ]
os: [ ubuntu-latest, windows-latest ]
node: [ 16, 18, 20 ]
arch: [ x86, x64 ]
exclude:
Expand All @@ -53,6 +53,10 @@ jobs:
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.arch }}
- uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/node_modules
key: ${{ matrix.os }}-${{ matrix.arch }}-node-${{ matrix.node }}-${{ hashFiles('./package.json') }}
- name: Install
run: npm install
- name: Unit Test
Expand Down Expand Up @@ -86,6 +90,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/node_modules
key: ${{ matrix.os }}-${{ matrix.arch }}-node-${{ matrix.node }}-${{ hashFiles('./package.json') }}
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -130,6 +138,7 @@ jobs:
# hash in each caching step of this job. So that thing can take a hike.
- run: echo -e "CACHE_KEY=$(shasum -a 256 package.json | cut -f1 -d ' ')" >> "$GITHUB_ENV"
- name: Restore modules cache
id: cache_restore
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/node_modules
Expand Down Expand Up @@ -172,7 +181,7 @@ jobs:
- name: Update modules cache
uses: actions/cache/save@v4
# We always want to run this step even if the "test" step failed.
if: '!cancelled()'
if: '!cancelled() && steps.cache_restore.outputs.cache-hit != true'
with:
path: ${{ github.workspace }}/node_modules
key: linux-arm-node-${{ matrix.node }}-${{ env.CACHE_KEY }}

0 comments on commit 622a629

Please sign in to comment.