Skip to content

Commit

Permalink
Upgrade unit-tests action to try and fix lerna stale cache
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Jul 5, 2023
1 parent dcc7b55 commit dac6e1c
Showing 1 changed file with 8 additions and 64 deletions.
72 changes: 8 additions & 64 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,10 @@ jobs:
- "6379:6379"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "18.6"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-server-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
node_modules
*/*/node_modules
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: "npm"
- name: Install lerna
run: |
npm install
Expand Down Expand Up @@ -77,24 +63,10 @@ jobs:
- "6379:6379"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "18.6"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-server-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
node_modules
*/*/node_modules
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: "npm"
- name: Install lerna
run: |
npm install
Expand Down Expand Up @@ -131,24 +103,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "18.6"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-client-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
node_modules
*/*/node_modules
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: "npm"
- name: Install lerna
run: |
npm install
Expand All @@ -174,28 +132,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "18.6"
cache: "npm"
- id: short_sha
run: |
echo `git rev-parse HEAD`
echo "::set-output name=sha::`git rev-parse --short HEAD`"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-client-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
node_modules
*/*/node_modules
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install lerna
run: |
npm install
Expand Down

0 comments on commit dac6e1c

Please sign in to comment.