feat: migrate to woodpecker

This commit is contained in:
JasterV 2026-03-03 22:12:19 +01:00
parent 9b57262f52
commit 189616da20
4 changed files with 10 additions and 72 deletions

View file

@ -1,13 +0,0 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
allow:
- dependency-type: direct
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly

View file

@ -1,28 +0,0 @@
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
# This will always pull the most recent stable version
bun-version: latest
- name: Install dependencies
# --frozen-lockfile is the Bun equivalent of 'npm ci'
run: bun install --frozen-lockfile
- name: Test
run: bun test

View file

@ -1,31 +0,0 @@
name: Bun Package Release
on:
release:
types: [created]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Tests
run: bun test
- name: Publish to NPM
run: bun publish --access public
env:
NPM_CONFIG_TOKEN: ${{ secrets.npm_token }}

10
.woodpecker/ci.yml Normal file
View file

@ -0,0 +1,10 @@
when:
- event: [push, pull_request]
branch: main
steps:
test:
image: oven/bun:debian
commands:
- bun install
- bun test