Add Gitea workflow file for CI
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
# Gitea CI/CD Workflow File (Inspired by .github/workflows/build.yml)
|
||||||
|
# This workflow triggers on push or pull request to main/master branches.
|
||||||
|
|
||||||
|
workflow_name: Build Project
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
- branches: [main, master]
|
||||||
|
pull_request:
|
||||||
|
- branches: [main, master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest # Or the recommended runner for Gitea
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4 # Assuming compatible action or manual checkout step
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4 # Or equivalent setup step for Gitea runner
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
cache: npm
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Build project
|
||||||
|
run: npm run build
|
||||||
Reference in New Issue
Block a user