[!] improve logging and add verbose support for all components #253
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: Go Build & Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
name: Build & Test | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Set up Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Get dependencies | |
run: | | |
go mod download | |
go version | |
go generate ./... | |
go build | |
- name: GolangCI-Lint | |
if: runner.os == 'Linux' | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
args: --verbose | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
if: runner.os == 'Linux' | |
with: | |
packages: etcd ncat | |
version: 1.0 | |
- name: Test E2E | |
if: runner.os == 'Linux' | |
run: | | |
sudo test/behaviour_test.sh | |
sudo rm -r default.etcd || true | |
- name: Run GoReleaser | |
if: runner.os == 'Linux' | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: latest | |
args: release --snapshot --skip=publish --clean |