chore: add ci workflow

This commit is contained in:
Philipp
2026-06-10 14:51:46 +02:00
parent fd50c05873
commit e4bfc62c18
5 changed files with 78 additions and 1 deletions
+54
View File
@@ -0,0 +1,54 @@
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
verify:
name: Build, lint and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.work
cache-dependency-path: |
go.work
backend/go.mod
console-proxy/go.mod
worker/go.mod
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
run: npm ci --prefix frontend
- name: Verify
run: make verify
secret-scan:
name: Secret scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks
uses: docker://zricethezav/gitleaks:v8.28.0
with:
args: detect --source=. --config=.gitleaks.toml --redact --verbose