You've already forked top-wallpaper
Update dependencies and add linting configuration
Some checks failed
Lint Code Base / golangci-lint (push) Failing after 2m32s
Some checks failed
Lint Code Base / golangci-lint (push) Failing after 2m32s
This commit is contained in:
28
.gitea/workflows/lint.yml
Normal file
28
.gitea/workflows/lint.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
|
||||
name: Lint Code Base
|
||||
run-name: ${{ github.workflow }}-{{ github.ref_name }}-{{ github.run_number }}
|
||||
|
||||
jobs:
|
||||
golangci-lint:
|
||||
name: golangci-lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.24.6'
|
||||
|
||||
- name: Install golangci-lint
|
||||
run: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.2
|
||||
|
||||
- name: Run golangci-lint
|
||||
run: |
|
||||
golangci-lint run ./...
|
||||
Reference in New Issue
Block a user