Skip to content

Dev for update v1.25.13 #268

Dev for update v1.25.13

Dev for update v1.25.13 #268

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@v3
with:
go-version: '1.19.1'
check-latest: true
cache: true
cache-dependency-path: |
**/go.sum
**/go.mod
- 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/[email protected]
if: always()
with:
files: "./report.xml"