chore: add basic project

This commit is contained in:
2025-10-12 14:37:23 +02:00
commit 0908847026
7 changed files with 331 additions and 0 deletions

46
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,46 @@
name: CI
on:
workflow_dispatch:
push:
branches:
- "*"
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- name: Format
id: format
continue-on-error: true
run: deno task make fmt
- name: Lint
id: lint
continue-on-error: true
run: deno task make lint
- name: Test
id: test
continue-on-error: true
run: deno task make test
- name: Fail if any step failed
if: |
steps.format.outcome != 'success' ||
steps.lint.outcome != 'success' ||
steps.test.outcome != 'success'
run: |
echo "::error::One or more steps failed"
exit 1