Skip to content

Merge pull request #52 from omertuc/now #78

Merge pull request #52 from omertuc/now

Merge pull request #52 from omertuc/now #78

Workflow file for this run

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container: quay.io/centos/centos:stream9
steps:
- uses: actions/checkout@v4
- name: build
run: |
set -xeuo pipefail
dnf -y install 'dnf-command(config-manager)'
dnf -y config-manager --set-enabled crb
dnf -y install go-toolset libvirt-devel
# Because all the git clones are much less reliable
export GOPROXY=https://proxy.golang.org
go install github.com/onsi/ginkgo/v2/ginkgo@latest
make GOOPTS=-buildvcs=false
export PATH=$PATH:$HOME/go/bin
make integration_tests
- name: lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2
export PATH=$PATH:$HOME/go/bin
make lint
- name: gofmt
run: |
if test -z $(gofmt -l .); then exit 0; else gofmt -d -e . && exit 1; fi