aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml26
1 files changed, 19 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1734cb50..5dc89fa1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -25,20 +25,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 6
+
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- cache: 'npm'
+ cache: 'pnpm'
- name: Install deps
- run: npm ci
+ run: pnpm install
- name: Build
- run: npm run build
+ run: pnpm run build
- name: Test
- run: npm run test
+ run: pnpm run test
lint:
runs-on: ubuntu-latest
@@ -46,15 +51,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 6
- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
- cache: 'npm'
+ cache: 'pnpm'
- name: Install deps
- run: npm ci
+ run: pnpm install
- name: Lint
- run: npm run lint
+ run: pnpm run lint