generated from TrueCloudLab/basic
[#1] Add basic forgejo workflows
All checks were successful
DCO action / DCO (pull_request) Successful in 25s
Vulncheck / Vulncheck (pull_request) Successful in 32s
Tests and linters / Tests (pull_request) Successful in 49s
Tests and linters / Tests with -race (pull_request) Successful in 57s
Tests and linters / Lint (pull_request) Successful in 1m59s
Vulncheck / Vulncheck (push) Successful in 32s
Tests and linters / Tests (push) Successful in 45s
Tests and linters / Tests with -race (push) Successful in 58s
Tests and linters / Lint (push) Successful in 2m0s
All checks were successful
DCO action / DCO (pull_request) Successful in 25s
Vulncheck / Vulncheck (pull_request) Successful in 32s
Tests and linters / Tests (pull_request) Successful in 49s
Tests and linters / Tests with -race (pull_request) Successful in 57s
Tests and linters / Lint (pull_request) Successful in 1m59s
Vulncheck / Vulncheck (push) Successful in 32s
Tests and linters / Tests (push) Successful in 45s
Tests and linters / Tests with -race (push) Successful in 58s
Tests and linters / Lint (push) Successful in 2m0s
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
7145bd89e1
commit
1f45e3d984
3 changed files with 106 additions and 0 deletions
21
.forgejo/workflows/dco.yml
Normal file
21
.forgejo/workflows/dco.yml
Normal 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 }}'
|
28
.forgejo/workflows/govulncheck.yml
Normal file
28
.forgejo/workflows/govulncheck.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Vulncheck
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
vulncheck:
|
||||
name: Vulncheck
|
||||
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.23'
|
||||
check-latest: true
|
||||
|
||||
- name: Install govulncheck
|
||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
- name: Run govulncheck
|
||||
run: govulncheck ./...
|
57
.forgejo/workflows/tests.yml
Normal file
57
.forgejo/workflows/tests.yml
Normal file
|
@ -0,0 +1,57 @@
|
|||
name: Tests and linters
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.23'
|
||||
cache: true
|
||||
|
||||
- name: Run linters
|
||||
run: make lint
|
||||
|
||||
tests:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go_versions: [ '1.22', '1.23' ]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '${{ matrix.go_versions }}'
|
||||
cache: true
|
||||
|
||||
- name: Run tests
|
||||
run: make test
|
||||
|
||||
tests-race:
|
||||
name: Tests with -race
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.22'
|
||||
cache: true
|
||||
|
||||
- name: Run tests
|
||||
run: go test ./... -count=1 -race
|
Loading…
Add table
Reference in a new issue