(ci) Add lint workflow, update build workflow actions

This commit is contained in:
NinjaCheetah 2026-04-05 21:08:48 -04:00
parent f9d561bd22
commit e9f325e7fa
No known key found for this signature in database
GPG Key ID: 39C2500E1778B156
2 changed files with 25 additions and 5 deletions

View File

@ -11,13 +11,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- name: Install dependencies
run: go mod download
- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
@ -32,7 +32,7 @@ jobs:
id: short-sha
run: echo "SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: wfc-server-${{ steps.short-sha.outputs.SHA }}
path: ./dist/*/*
path: ./dist/*/*

20
.github/workflows/golangci-lint.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: golangci-lint
on:
[push, pull_request]
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: stable