refactor CI workflows to streamline linting and release processes
Some checks failed
CI / Lint (push) Successful in 6s
CI / Build (push) Successful in 14s
CI / Test (push) Successful in 57s
Release versioned tag / Build versioned release (push) Failing after 1m5s

This commit is contained in:
2025-01-21 12:36:31 -06:00
parent 1feee2758c
commit 79f0814745
2 changed files with 10 additions and 43 deletions

View File

@@ -23,6 +23,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -D errcheck
version: latest
test:

View File

@@ -5,49 +5,6 @@ on:
- 'v*'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Install go dependencies
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Get go dependencies
run: |
go mod tidy
- name: Test
run: go test -race -v -shuffle=on ./...
release:
name: Build versioned release
runs-on: ubuntu-latest
@@ -65,6 +22,15 @@ jobs:
- name: Install go dependencies
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -D errcheck
version: latest
- name: Test
run: go test -race -v -shuffle=on ./...
- name: Build for linux
run: |
go build -o bin/SteamCache2-${VERSION#v}-${BUILD}-${GOOS}-${GOARCH} main.go