ci: Update asset paths for Linux and Windows builds in release workflow #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go CI | |
on: | |
# Trigger the workflow on any push to the repository | |
push: | |
branches: | |
- "**" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Install dependencies | |
run: go get -v -t -d ./... | |
- name: Lint with golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.58 | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
go-version: ["1.20.x", "1.21.x", "1.22.x"] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install dependencies | |
run: go get -v -t -d ./... | |
- name: Run Tests | |
run: go test -v ./... > TestResults-${{ matrix.go-version }}.log | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TestResults-${{ matrix.os }}-${{ matrix.go-version }} | |
path: TestResults-${{ matrix.go-version }}.log |