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.
This commit is contained in:
Johann150 2023-05-07 15:26:14 +02:00
parent 642c8bcca9
commit a10b8875d9
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
6 changed files with 29 additions and 26 deletions

View file

@ -8,15 +8,15 @@ clone:
pipeline: pipeline:
install: install:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
build: build:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn build - yarn build

View file

@ -8,15 +8,15 @@ clone:
pipeline: pipeline:
install: install:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
lint: lint:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn workspace backend run lint - yarn workspace backend run lint

View file

@ -8,15 +8,15 @@ clone:
pipeline: pipeline:
install: install:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
lint: lint:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn workspace client run lint - yarn workspace client run lint

View file

@ -8,15 +8,15 @@ clone:
pipeline: pipeline:
install: install:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
lint: lint:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn workspace foundkey-js run lint - yarn workspace foundkey-js run lint

View file

@ -8,15 +8,15 @@ clone:
pipeline: pipeline:
install: install:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
lint: lint:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn workspace sw run lint - yarn workspace sw run lint

View file

@ -5,11 +5,14 @@ clone:
depth: 1 # CI does not need commit history depth: 1 # CI does not need commit history
recursive: true recursive: true
depends_on:
- build
pipeline: pipeline:
build: build:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn install - yarn install
@ -18,15 +21,15 @@ pipeline:
- yarn build - yarn build
mocha: mocha:
when: when:
event: branch: main
- pull_request event: push
image: node:18.6.0 image: node:18.6.0
commands: commands:
- yarn mocha - yarn mocha
e2e: e2e:
when: when:
event: branch: main
- pull_request event: push
image: cypress/included:10.3.0 image: cypress/included:10.3.0
commands: commands:
- npm run start:test & - npm run start:test &