Support drive anti-affinity for volumes #800
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [ master, devel ] | |
pull_request: | |
branches: [ master, devel ] | |
# This ensures that previous jobs for the PR are canceled when the PR is | |
# updated. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
check-latest: true | |
- name: Set environment | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
mkdir -p "$(go env GOPATH)/src/github.com/minio/" | |
ln -s "$PWD" "$(go env GOPATH)/src/github.com/minio/directpv" | |
- name: Build and test | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
./build.sh | |
go test -v ./... | |
- uses: docker/setup-qemu-action@v2 | |
- name: Check Goreleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --skip-publish --skip-sign --clean --snapshot |