Migrate to Woodpecker CI #148

Merged
Vylpes merged 3 commits from feature/131-woodpecker into develop 2024-02-23 18:28:49 +00:00
2 changed files with 23 additions and 75 deletions
Showing only changes of commit 5fe64d4fb7 - Show all commits

View file

@ -1,75 +0,0 @@
---
kind: pipeline
name: deployment
steps:
- name: build
image: node
commands:
- yarn install --frozen-lockfile
- yarn build
- name: test
image: node
commands:
- yarn test
depends_on:
- build
- name: lint
image: node
commands:
- yarn lint
depends_on:
- build
- name: deploy
image: plugins/npm
settings:
username: vylpes
password:
from_secret: npm_password
email: ethan@vylpes.com
token:
from_secret: npm_token
depends_on:
- test
- lint
trigger:
branch:
- master
event:
- push
- tag
---
kind: pipeline
name: integration
steps:
- name: build
image: node
commands:
- yarn install --frozen-lockfile
- yarn build
- name: test
image: node
commands:
- yarn test
depends_on:
- build
- name: lint
image: node
commands:
- yarn lint
depends_on:
- build
trigger:
branch:
- develop
- feature/*
- hotfix/*
- renovate/*
event:
- push

23
.woodpecker.yml Normal file
View file

@ -0,0 +1,23 @@
steps:
build:
image: node
commands:
- yarn install --frozen-lockfile
- yarn build
when:
event: push
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
lint:
image: node
commands:
- yarn lint
when:
event: push
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
test:
image: node
commands:
- yarn test
when:
event: push
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]