improve ci
This commit is contained in:
19
.woodpecker/pr.yml
Normal file
19
.woodpecker/pr.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
workspace:
|
||||||
|
base: /woodpecker
|
||||||
|
path: pr
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
image: node:24-slim
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
|
- name: test-coverage
|
||||||
|
image: node:24-slim
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run test:coverage
|
||||||
@@ -1,30 +1,16 @@
|
|||||||
workspace:
|
workspace:
|
||||||
base: /woodpecker
|
base: /woodpecker
|
||||||
path: src
|
path: release
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: cron
|
- event: cron
|
||||||
branch: main
|
branch: main
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
|
||||||
image: node:22
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
- push
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
- npm run lint
|
|
||||||
|
|
||||||
- name: generate-dungeon
|
- name: generate-dungeon
|
||||||
image: ghcr.io/puppeteer/puppeteer:latest
|
image: ghcr.io/puppeteer/puppeteer:latest
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
environment:
|
environment:
|
||||||
OLLAMA_API_URL:
|
OLLAMA_API_URL:
|
||||||
from_secret: OLLAMA_API_URL
|
from_secret: OLLAMA_API_URL
|
||||||
@@ -38,9 +24,6 @@ steps:
|
|||||||
|
|
||||||
- name: upload-to-gitea-release
|
- name: upload-to-gitea-release
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: GITEA_TOKEN
|
from_secret: GITEA_TOKEN
|
||||||
Reference in New Issue
Block a user