Skip to content

Commit

Permalink
ci: add pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Feb 20, 2023
1 parent 56d5248 commit 6607802
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/build.yml
Expand Up @@ -10,12 +10,25 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- name: Install and Build 🔧
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm 🤏🏻
uses: pnpm/action-setup@v2.1.0
with:
version: latest
run_install: true

- name: Build 🔧
run: |
npm install
npm run lint
npm run test
npm run build
pnpm run lint
pnpm run test
pnpm run build
- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/pr.yml
Expand Up @@ -10,9 +10,22 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- name: Install and Build 🔧
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm 🤏🏻
uses: pnpm/action-setup@v2.1.0
with:
version: 6.32.4
run_install: true

- name: Build 🔧
run: |
npm install
npm run lint
npm run test
npm run build
pnpm run lint
pnpm run test
pnpm run build
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -2,3 +2,4 @@ dist/*
coverage/*
docs/*
CHANGELOG.md
pnpm-lock.yaml

0 comments on commit 6607802

Please sign in to comment.