ci(workflows): consolidate and update CI configuration
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
CI / build (push) Successful in 7s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 6s

- Replace `test.yml` with `ci.yml` for streamlined workflows
- Add support for `deno fmt` and `deno lint` in CI checks
- Ensure tests run on `main` branch pushes and PR events
This commit is contained in:
2025-05-27 13:25:43 +02:00
parent e416af9754
commit ec1697df94
2 changed files with 29 additions and 22 deletions

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

@@ -0,0 +1,29 @@
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- name: Run CI Checks
run: |
deno fmt --check
deno lint
deno task test

View File

@@ -1,22 +0,0 @@
name: Test http-kernel
on:
workflow_dispatch:
pull_request:
branches:
- '**'
jobs:
run-test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
- name: Run Tests
run: deno task test