zerobyte/.github/workflows/ci.yml
Nico e9fb5862f7 Controllers tests (#187)
* test: backups service

* refactor: create hono app in a separate file

To avoid side effects like db migration or startup scripts when testing

test(backups): add security tests to the backups controller

* ci: run typechecks, build and tests on PR

* test: controllers security tests

* chore: update lock file

* refactor: pr feedbacks
2025-12-20 01:04:47 +01:00

38 lines
658 B
YAML

name: Checks
permissions:
contents: read
security-events: write
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ci:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install dependencies
uses: "./.github/actions/install-dependencies"
- name: Run type checks
shell: bash
run: bun run tsc
- name: Run tests
shell: bash
run: bun run test --ci --coverage
- name: Build project
shell: bash
run: bun run build