55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
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
|