[#58] .forgejo: Add forgejo actions

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-09-02 16:12:29 +03:00
parent aaa922f600
commit f146e89509
No known key found for this signature in database
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,21 @@
name: DCO action
on: [pull_request]
jobs:
dco:
name: DCO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Run commit format checker
uses: https://git.frostfs.info/TrueCloudLab/dco-go@v3
with:
from: 'origin/${{ github.event.pull_request.base.ref }}'

View file

@ -0,0 +1,15 @@
name: Pre-commit hooks
on: [pull_request]
jobs:
precommit:
name: Pre-commit
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
apt update
apt install -y pre-commit clang-format
- name: Run pre-commit
run: pre-commit run --all-files --hook-stage manual --color=always