Skip to content

Commit

Permalink
do not add deps to the uploaded artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 3, 2025
1 parent 110e19b commit bfd293a
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,17 @@ jobs:
fi
done
- name: Runs dependency installation
- name: Cache Node.js dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
~/.cache/yarn/v6
key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: CI="" yarn install --frozen-lockfile

- name: Build common package
Expand All @@ -213,17 +223,14 @@ jobs:
uses: actions/upload-artifact@v4.5.0
with:
name: client
path: .
include-hidden-files: true
path: |
.
!**/node_modules
lint-client:
name: Lint client
needs: prepare-client-tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
shards: [0, 1, 2, 3, 4, 5]

steps:
- name: Download filesystem artifact
Expand All @@ -237,6 +244,19 @@ jobs:
with:
node-version-file: .nvmrc

- name: Cache Node.js dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
~/.cache/yarn/v6
key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: CI="" yarn install --frozen-lockfile

- name: Compile
run: cd packages/client && yarn test:compilation

Expand All @@ -259,11 +279,27 @@ jobs:
name: client
path: .

- name: Debug
run: ls -la

- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Cache Node.js dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
~/.cache/yarn/v6
key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: CI="" yarn install --frozen-lockfile

- name: Run Unit Test
run: cd packages/client && yarn test -- --shard ${{ strategy.job-index }}/${{ strategy.job-total }}

Expand Down

0 comments on commit bfd293a

Please sign in to comment.