Skip to content

Commit

Permalink
fix: Do not install dependencies multiple times when testing and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 8, 2024
1 parent d77b94d commit 453408c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
pull_request:

jobs:
api:
lint:
runs-on: ubuntu-latest
name: API
name: Linter
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,23 +21,9 @@ jobs:
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint
- name: Lint api
run: pnpm lint api
artisan:
runs-on: ubuntu-latest
name: Artisan
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint artisan
continue-on-error: true
- name: Lint stitcher
run: pnpm lint stitcher
continue-on-error: true
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
workflow_dispatch:

jobs:
stitcher:
unit_tests:
runs-on: ubuntu-latest
name: Stitcher
name: Unit Tests
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,6 +21,7 @@ jobs:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm --filter "stitcher" install
- name: Run unit tests
run: pnpm install
- name: Unit tests for stitcher
run: pnpm --filter "stitcher" test
continue-on-error: true

0 comments on commit 453408c

Please sign in to comment.