mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-05-06 05:26:33 -05:00
(ci) Add lint workflow, update build workflow actions
This commit is contained in:
parent
f9d561bd22
commit
e9f325e7fa
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -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
20
.github/workflows/golangci-lint.yml
vendored
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user