Skip to content

resolve security issue #5 #143

resolve security issue #5

resolve security issue #5 #143

Workflow file for this run

name: Go
on: [push]
jobs:
test:
name: Check code quality and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Format
run: diff -u <(echo -n) <(gofmt -d ./)
- name: Suspicious constructs
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
name: Build and deploy new release
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}