Skip to content

Commit

Permalink
fix: ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzhao Hu committed Jun 11, 2023
1 parent cc5e332 commit 217cb1a
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
version: 2
version: 2.1

defaults: &defaults
docker:
- image: cimg/node:16.20.0

jobs:
prepare:
<<: *defaults
commands:
prepare: &prepare
steps:
- checkout

- run:
name: Install pnpm
command: npm install -g pnpm

# dependencies
# we do not use caches here because monorepos have their own package.json files
# it is fast to install dependencies on CI
- run:
name: Install dependencies
command: pnpm install

jobs:
lint:
<<: *defaults
steps:
- prepare
- run:
name: lint
name: Lint
command: pnpm run lint

test:
<<: *defaults
steps:
- prepare
- run:
name: Unit test
command: pnpm run test

workflow:
workflows:
lint_and_build:
jobs:
- prepare
- lint:
requires:
- prepare
- test:
requires:
- prepare
- lint
- test

0 comments on commit 217cb1a

Please sign in to comment.