Compare commits
2 commits
7d7d87b57b
...
03971ef9a9
Author | SHA1 | Date | |
---|---|---|---|
03971ef9a9 | |||
578ad52896 |
3 changed files with 50 additions and 11 deletions
39
.forgejo/workflows/workflow.yaml
Normal file
39
.forgejo/workflows/workflow.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
env:
|
||||
GO_TEST_VERBOSE: "1"
|
||||
GO_TEST_COVER: "1"
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Setup Go
|
||||
uses: https://code.forgejo.org/actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.21'
|
||||
- name: Test
|
||||
run: |
|
||||
cd internal/build
|
||||
go run magefiles/main.go -v test
|
||||
|
||||
lint:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Setup Go
|
||||
uses: https://code.forgejo.org/actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.21'
|
||||
- name: Lint
|
||||
uses: https://github.com/golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.54
|
|
@ -14,7 +14,17 @@ output:
|
|||
|
||||
linters:
|
||||
enable-all: true
|
||||
# disable:
|
||||
disable:
|
||||
- scopelint
|
||||
- maligned
|
||||
- exhaustivestruct
|
||||
- deadcode
|
||||
- interfacer
|
||||
- nosnakecase
|
||||
- ifshort
|
||||
- varcheck
|
||||
- golint
|
||||
- structcheck
|
||||
fast: false
|
||||
|
||||
linters-settings:
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
pipeline:
|
||||
dagger:
|
||||
image: golang:1.20.4-alpine
|
||||
commands:
|
||||
- apk add docker-cli
|
||||
- cd internal/build
|
||||
- go run .
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
Loading…
Reference in a new issue