Bump github.com/open-policy-agent/opa from 0.68.0 to 1.0.0 #69
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: Test | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # ensure all history and tags are fetched | |
- name: Install Go toolchain | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.4" | |
- name: Get latest Git tag | |
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV | |
- name: Build | |
run: | | |
mkdir dist | |
env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -X 'github.com/rjuer/cidr/cmd.version=$VERSION'" -o dist/ | |
- name: Test | |
run: | | |
mkdir tmp | |
make vet | |
make test |