mirror of
https://codeberg.org/JasterV/imgphash.git
synced 2026-04-26 18:10:01 +00:00
feat: migrate to woodpecker
This commit is contained in:
parent
9b57262f52
commit
189616da20
4 changed files with 10 additions and 72 deletions
13
.github/dependabot.yml
vendored
13
.github/dependabot.yml
vendored
|
|
@ -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
|
|
||||||
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
|
@ -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
|
|
||||||
31
.github/workflows/npm-publish.yml
vendored
31
.github/workflows/npm-publish.yml
vendored
|
|
@ -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
10
.woodpecker/ci.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
when:
|
||||||
|
- event: [push, pull_request]
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: oven/bun:debian
|
||||||
|
commands:
|
||||||
|
- bun install
|
||||||
|
- bun test
|
||||||
Loading…
Reference in a new issue