Skip to content

Running tests and checks for policies #89

Running tests and checks for policies

Running tests and checks for policies #89

Workflow file for this run

name: Test and Check
run-name: Running tests and checks for policies
on: [push]
jobs:
Test-And-Check:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Test
run: go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
if: startsWith(github.ref, 'refs/tags/')
with:
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}