feat: Add basic ci #2
2 changed files with 30 additions and 0 deletions
commit
708bd3ac9a
16
.forgejo/actions/setup/action.yml
Normal file
16
.forgejo/actions/setup/action.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: "Setup Environment"
|
||||
description: ""
|
||||
|
||||
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