Skip to content

Commit

Permalink
nodemodules
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Feb 29, 2024
1 parent dbd3fa4 commit 45739a6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:
with:
node-version: "18.18.0"
cache: 'yarn'
- name: Download deps cache artifacts
uses: actions/download-artifact@v3
with:
name: node_modules.tar.gz
- name: Unzip node_modules
run: tar xzf node_modules.tar.gz
- name: Install deps via Yarn
run: yarn
- name: Check for frozen lockfile
run: yarn check-lockfile
- name: Zip node_modules
run: tar czf node_modules.tar.gz node_modules/
- name: Upload deps artifacts
uses: actions/upload-artifact@v3
with:
name: node_modules.tar.gz
path: node_modules.tar.gz

# TEST
test:
Expand All @@ -38,6 +39,13 @@ jobs:
DISPLAY: :0
VITEST_SEGFAULT_RETRY: 3
steps:
- uses: actions/checkout@v3
- name: Download deps cache artifacts
uses: actions/download-artifact@v3
with:
name: node_modules.tar.gz
- name: Unzip node_modules
run: tar xzf node_modules.tar.gz
- name: Run tests
continue-on-error: true
uses: actions/setup-node@v3
Expand Down

0 comments on commit 45739a6

Please sign in to comment.