From bd11b9d818fc0a4476837380e18091be54380856 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Wed, 7 Sep 2022 14:02:45 -0400 Subject: [PATCH] Revert "ci: combine install and lint/build tasks" This reverts commit 759d031a5f84c0b4765c6c6a6c2ec3dc5dd28014. This was originally to solve some issues with builds during the workspace refactor in https://akkoma.dev/FoundKeyGang/FoundKey/pulls/86 but this didn't end up being the root cause, so it may actually be better to split these tasks again. --- .woodpecker/build.yml | 8 +++++++- .woodpecker/lint-backend.yml | 8 +++++++- .woodpecker/lint-client.yml | 8 +++++++- .woodpecker/lint-foundkey-js.yml | 8 +++++++- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index cb35c390c..e93473fe8 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -6,11 +6,17 @@ clone: recursive: true pipeline: - build: + install: when: event: - pull_request image: node:18.6.0 commands: - yarn install + build: + when: + event: + - pull_request + image: node:18.6.0 + commands: - yarn build diff --git a/.woodpecker/lint-backend.yml b/.woodpecker/lint-backend.yml index 8042733ac..5690d99ae 100644 --- a/.woodpecker/lint-backend.yml +++ b/.woodpecker/lint-backend.yml @@ -6,11 +6,17 @@ clone: recursive: true pipeline: - lint: + 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 workspace backend run lint diff --git a/.woodpecker/lint-client.yml b/.woodpecker/lint-client.yml index 0248297e2..feb910081 100644 --- a/.woodpecker/lint-client.yml +++ b/.woodpecker/lint-client.yml @@ -6,11 +6,17 @@ clone: recursive: true pipeline: - lint: + 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 workspace client run lint diff --git a/.woodpecker/lint-foundkey-js.yml b/.woodpecker/lint-foundkey-js.yml index 071a90e8c..ce8162209 100644 --- a/.woodpecker/lint-foundkey-js.yml +++ b/.woodpecker/lint-foundkey-js.yml @@ -6,11 +6,17 @@ clone: recursive: true pipeline: - lint: + 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 workspace foundkey-js run lint