Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Ref: #107
  • Loading branch information
esdmr committed Oct 28, 2021
1 parent 18ead26 commit 979a34b
Showing 1 changed file with 4 additions and 39 deletions.
43 changes: 4 additions & 39 deletions .github/workflows/ci.yml
Expand Up @@ -18,47 +18,9 @@ env:

jobs:
lint:
name: Lint
name: CI
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.JOB_NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.JOB_PNPM_VERSION }}

- name: Set pnpm store-dir
run: pnpm config set store-dir ~/.pnpm-store

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-current-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-current
- name: Install packages
run: pnpm install

- name: Run linter
run: pnpm run lint

test:
name: Test
runs-on: ubuntu-latest
# Run after lint so pnpm can utilise the cache
needs: lint
if: always()

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -90,6 +52,9 @@ jobs:
- name: Build
run: pnpm run build

- name: Run linter
run: pnpm run lint

- name: Run tests
run: pnpm run test:coverage -- --no-check-coverage

Expand Down

0 comments on commit 979a34b

Please sign in to comment.