Files
PersonalBlog/.gitea/workflows/ci.yml
T
kpcto d7740e3819
CI / Run tests (pull_request) Failing after 21s
CI / Secret scan (gitleaks) (pull_request) Failing after 13s
Update .gitea/workflows/ci.yml
2026-08-26 17:56:07 +00:00

31 lines
829 B
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable pnpm
run: corepack enable # pnpm ships with Node 20 via corepack
- name: Install dependencies
run: pnpm install
- name: Run test suite
run: pnpm test
gitleaks:
name: Secret scan (gitleaks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gitleaks
run: |
curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_arm64.tar.gz -o gitleaks.tar.gz
tar -xzf gitleaks.tar.gz gitleaks
- name: Run gitleaks (fail on any hit)
run: ./gitleaks detect --source . --no-git --redact -v