chore: update gitea action
All checks were successful
Build / build (push) Successful in 1m28s
golangci-lint / lint (push) Successful in 2m24s
Test / test (push) Successful in 1m39s

This commit is contained in:
2026-01-27 02:17:09 +01:00
parent f81c902ca6
commit 94d2d5cd96
4 changed files with 35 additions and 13 deletions

View File

@@ -0,0 +1,27 @@
name: Build
on:
push:
pull_request:
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
check-latest: true
cache: false
- name: Build
run:
go build .

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 # all history for all branches and tags fetch-depth: 0 # all history for all branches and tags
@@ -23,12 +23,8 @@ jobs:
go-version-file: go.mod go-version-file: go.mod
check-latest: true check-latest: true
cache: false cache: false
version: 1.24
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v8 uses: golangci/golangci-lint-action@v9.2.0
with: with:
version: v2.8.0 version: v2.8.0
- name: Build
run: |
go build .

View File

@@ -10,7 +10,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 # all history for all branches and tags fetch-depth: 0 # all history for all branches and tags
@@ -20,8 +20,5 @@ jobs:
check-latest: true check-latest: true
cache: false cache: false
- name: Install dependencies - name: Run go test
run: sudo apt-get update && sudo apt-get install -y make run: go test -mod vendor -race -coverprofile coverage.out -v ./...
- name: Run make check-all
run: make test

2
.gitignore vendored
View File

@@ -12,4 +12,6 @@
*.out *.out
.idea/ .idea/
coverage.out
budget* budget*