ci: run typechecks, build and tests on PR

This commit is contained in:
Nicolas Meienberger 2025-12-19 18:55:17 +01:00
parent 620d1bf4fd
commit 9e1dfcc669
2 changed files with 28 additions and 10 deletions

View file

@ -0,0 +1,15 @@
name: Install dependencies
description: Install dependencies
runs:
using: "composite"
steps:
- uses: oven-sh/setup-bun@v2
name: Install Bun
with:
bun-version: "1.3.5"
- name: Install dependencies
shell: bash
run: bun install --frozen-lockfile

View file

@ -21,15 +21,18 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }}
- name: Scan current project - name: Install dependencies
id: scan uses: "./.github/actions/install-dependencies"
uses: anchore/scan-action@v7
with:
path: "."
- name: upload Anchore scan SARIF report - name: Run type checks
uses: github/codeql-action/upload-sarif@v4 shell: bash
with: run: bun run tsc
sarif_file: ${{ steps.scan.outputs.sarif }}
- name: Run tests
shell: bash
run: bun run test --ci --coverage
- name: Build project
shell: bash
run: bun run build