feat: Add basic ci
This commit is contained in:
parent
9fe7723d13
commit
86e0260afb
2 changed files with 29 additions and 0 deletions
15
.forgejo/actions/setup/action.yml
Normal file
15
.forgejo/actions/setup/action.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
name: "Setup Environment"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v5
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
- uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
14
.forgejo/workflows/ci.yml
Normal file
14
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: setup
|
||||||
|
uses: ./.forgejo/actions/setup
|
||||||
|
- name: build
|
||||||
|
run: bun run build
|
Loading…
Add table
Add a link
Reference in a new issue