From a10b8875d936df6d21354e049e24a5e923c40aca Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 7 May 2023 15:26:14 +0200 Subject: [PATCH] run CI on pushes to main Since PRs seem to be much rarer than pushes to main, it makes more sense to do it this way. Perhaps in the future, it would make sense to run it on all pushes, but the question would be how PRs are handled. --- .woodpecker/build.yml | 8 ++++---- .woodpecker/lint-backend.yml | 8 ++++---- .woodpecker/lint-client.yml | 8 ++++---- .woodpecker/lint-foundkey-js.yml | 8 ++++---- .woodpecker/lint-sw.yml | 8 ++++---- .woodpecker/test.yml | 15 +++++++++------ 6 files changed, 29 insertions(+), 26 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index e93473fe8..f4f2805c2 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -8,15 +8,15 @@ clone: pipeline: install: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install build: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn build diff --git a/.woodpecker/lint-backend.yml b/.woodpecker/lint-backend.yml index 5690d99ae..096989cb7 100644 --- a/.woodpecker/lint-backend.yml +++ b/.woodpecker/lint-backend.yml @@ -8,15 +8,15 @@ clone: pipeline: install: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install lint: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn workspace backend run lint diff --git a/.woodpecker/lint-client.yml b/.woodpecker/lint-client.yml index feb910081..6b60ac448 100644 --- a/.woodpecker/lint-client.yml +++ b/.woodpecker/lint-client.yml @@ -8,15 +8,15 @@ clone: pipeline: install: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install lint: when: - event: - - pull_request + branch: main + event: push 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 ce8162209..ddff1b46e 100644 --- a/.woodpecker/lint-foundkey-js.yml +++ b/.woodpecker/lint-foundkey-js.yml @@ -8,15 +8,15 @@ clone: pipeline: install: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install lint: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn workspace foundkey-js run lint diff --git a/.woodpecker/lint-sw.yml b/.woodpecker/lint-sw.yml index 4a20add2e..aad1f4ad4 100644 --- a/.woodpecker/lint-sw.yml +++ b/.woodpecker/lint-sw.yml @@ -8,15 +8,15 @@ clone: pipeline: install: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install lint: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn workspace sw run lint diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 30eb04ee6..e42d68c73 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -5,11 +5,14 @@ clone: depth: 1 # CI does not need commit history recursive: true +depends_on: + - build + pipeline: build: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn install @@ -18,15 +21,15 @@ pipeline: - yarn build mocha: when: - event: - - pull_request + branch: main + event: push image: node:18.6.0 commands: - yarn mocha e2e: when: - event: - - pull_request + branch: main + event: push image: cypress/included:10.3.0 commands: - npm run start:test &