Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Cache dependencies #2

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
test:
name: "Tests"
name: 'Tests'
runs-on: ubuntu-latest
timeout-minutes: 10

Expand All @@ -21,12 +21,24 @@ jobs:
- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Node Cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache/yarn
~/.local/share/pnpm/store
key: node-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

Expand All @@ -38,19 +50,22 @@ jobs:
run: pnpm test

floating:
name: "Floating Dependencies"
name: 'Floating Dependencies'
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Install Dependencies
run: pnpm install --no-lockfile

Expand Down Expand Up @@ -81,13 +96,25 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Node Cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache/yarn
~/.local/share/pnpm/store
key: node-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}

- name: Install Dependencies
run: pnpm install --frozen-lockfile

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,28 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Node Cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache/yarn
~/.local/share/pnpm/store
key: node-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- uses: kategengler/[email protected]
with:
branch: dist
Expand Down
Loading