You've already forked prometheus-fail2ban-exporter
chore(ci): add golangci-lint
Some checks failed
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Failing after 4s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Failing after 32s
Run unit tests / test (push) Successful in 1m43s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Failing after 16s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Failing after 3m2s
Some checks failed
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Failing after 4s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Failing after 32s
Run unit tests / test (push) Successful in 1m43s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Failing after 16s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Failing after 3m2s
This commit is contained in:
24
.gitea/workflows/golang-tests.yaml
Normal file
24
.gitea/workflows/golang-tests.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
name: Golang Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [ "opened", "reopened", "synchronize" ]
|
||||
push:
|
||||
branches: [ '**' ]
|
||||
tags-ignore: [ '**' ]
|
||||
|
||||
jobs:
|
||||
unittest:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go: [ stable ]
|
||||
os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: actions/setup-go@v5.5.0
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- env:
|
||||
GOPROXY: ${{ vars.GOPROXY }}
|
||||
run: make test/unit
|
Reference in New Issue
Block a user