forked from FoundKeyGang/FoundKey
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:
parent
642c8bcca9
commit
a10b8875d9
6 changed files with 29 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 &
|
||||
|
|
Loading…
Reference in a new issue