Skip to content

Commit 9b4552a

Browse files
committed
[infra] add ci/cd
1 parent 3043082 commit 9b4552a

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/.checks.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Checks
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
gitleaks:
7+
required: true
8+
9+
jobs:
10+
yamllint:
11+
name: Linter
12+
runs-on: ${{ vars.RUNS_ON }}
13+
steps:
14+
- name: Invoke
15+
uses: Mad-Pixels/github-workflows/actions/taskfile-runner@main
16+
with:
17+
command: yamllint
18+
19+
leaks:
20+
name: GitLeaks
21+
runs-on: ${{ vars.RUNS_ON }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- uses: gitleaks/gitleaks-action@v2
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
GITLEAKS_LICENSE: ${{ secrets.gitleaks }}

.github/workflows/base_commit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Base commit
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
concurrency:
9+
group: base-commit-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
checks:
14+
name: (Base) Commit Checks
15+
uses: ./.github/workflows/.checks.yml
16+
secrets:
17+
gitleaks: ${{ secrets.GITLEAKS_LICENSE }}
18+
19+
commit-check:
20+
name: (Base) Commit Check
21+
needs: checks
22+
runs-on: ${{ vars.RUNS_ON }}
23+
steps:
24+
- name: All checks passed
25+
run: |
26+
echo "✅ All Commit checks completed successfully!"

0 commit comments

Comments
 (0)