From d8fd6d55ed96cc6df3b7695c4ee3fbfd41a1db9d Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Fri, 26 Aug 2022 15:06:45 -0400 Subject: [PATCH] ci: add lint for foundkey-js --- .woodpecker/lint-backend.yml | 2 +- .woodpecker/lint-client.yml | 2 +- .woodpecker/lint-foundkey-js.yml | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .woodpecker/lint-foundkey-js.yml diff --git a/.woodpecker/lint-backend.yml b/.woodpecker/lint-backend.yml index 98722a7d4..65b51497a 100644 --- a/.woodpecker/lint-backend.yml +++ b/.woodpecker/lint-backend.yml @@ -19,4 +19,4 @@ pipeline: - pull_request image: node:18.6.0 commands: - - yarn --cwd ./packages/backend lint + - yarn workspaces backend run lint diff --git a/.woodpecker/lint-client.yml b/.woodpecker/lint-client.yml index bd4eaadcc..ce3faeb49 100644 --- a/.woodpecker/lint-client.yml +++ b/.woodpecker/lint-client.yml @@ -19,4 +19,4 @@ pipeline: - pull_request image: node:18.6.0 commands: - - yarn --cwd ./packages/client lint + - yarn workspaces client run lint diff --git a/.woodpecker/lint-foundkey-js.yml b/.woodpecker/lint-foundkey-js.yml new file mode 100644 index 000000000..6912626f7 --- /dev/null +++ b/.woodpecker/lint-foundkey-js.yml @@ -0,0 +1,22 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + depth: 1 # CI does not need commit history + recursive: true + +pipeline: + install: + when: + event: + - pull_request + image: node:18.6.0 + commands: + - yarn install + lint: + when: + event: + - pull_request + image: node:18.6.0 + commands: + - yarn workspaces foundkey-js run lint