Skip to content

Commit

Permalink
ci: add security audit checks (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Dec 13, 2023
1 parent cea71aa commit 50ca714
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# The Lifted Initiative
version: 2.1

node_version: &node_version '20.9.0'

orbs:
node: circleci/node@5.1.0
codecov: codecov/codecov@3.2.4
Expand All @@ -21,16 +23,32 @@ jobs:
command: node -v && yarn -v
- node/install-packages:
pkg-manager: yarn
- run:
command: yarn install
- run:
command: yarn build
- run:
command: yarn coverage
- codecov/upload
security:
parameters:
node_version:
type: string
executor:
name: node/default
tag: << parameters.node_version >>
resource_class: medium
steps:
- checkout
- run:
command: node -v && yarn -v
- node/install-packages:
pkg-manager: yarn
- run:
command: yarn audit

workflows:
ci:
jobs:
- build_test:
node_version: "20.9.0"
node_version: *node_version
- security:
node_version: *node_version

0 comments on commit 50ca714

Please sign in to comment.