Skip to content

fix build version for etcd apiv3 & clean binary layout and gomod tidy #340

fix build version for etcd apiv3 & clean binary layout and gomod tidy

fix build version for etcd apiv3 & clean binary layout and gomod tidy #340

Workflow file for this run

on:
pull_request:
branches:
- main
name: Build Test
jobs:
build:
name: Build & Test
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- goarch: amd64
goos: linux
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v2
with:
ref: 'dev'
- uses: actions/setup-go@v5
with:
go-version: '^1.22.6'
cache-dependency-path: subdir/go.sum
- name: generate resources
run: |
mkdir -p {build/data,build/static}
go generate ./...
- name: Test
id: gotest
run: |
export GOPATH="$HOME/go/"
export PATH=$PATH:$GOPATH/bin
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.39
if: always()
with:
files: "./report.xml"