Skip to content

Merge pull request #45 from Athemis/cputemp_amd #98

Merge pull request #45 from Athemis/cputemp_amd

Merge pull request #45 from Athemis/cputemp_amd #98

Workflow file for this run

name: Test and build
on: [push, pull_request]
permissions:
contents: write
jobs:
lint:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.55
test:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.21' ]
name: Test (${{ matrix.go }})
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: go test ./...
goreleaser:
runs-on: ubuntu-latest
needs: [test, lint]
if: startsWith(github.ref, 'refs/tags/v')
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}