This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Add UnknownFieldHandler
(#3)
#14
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 | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
go: | |
- "1.22" | |
- "1.23" | |
- "tip" | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
path: ${{ github.workspace }}/go/src/github.com/engity-com/go-yaml | |
- name: Set up Go ${{ matrix.go }} | |
if: matrix.go != 'tip' | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
stable: false | |
- name: Set up Go ${{ matrix.go }} | |
if: matrix.go == 'tip' | |
run: | | |
export GOROOT_BOOTSTRAP=`go env GOROOT` | |
export GOROOT=$HOME/gotip | |
mkdir $HOME/gotip | |
cd $HOME/gotip | |
curl -s 'https://go.googlesource.com/go/+/refs/heads/master?format=JSON' | awk '/"commit"/{print substr($2,2,40);exit}' >HEAD | |
awk '{printf("gotip-%s",substr($0,0,7))}' <HEAD >VERSION | |
curl -s -o go.tar.gz https://go.googlesource.com/go/+archive/`cat HEAD`.tar.gz | |
tar xfz go.tar.gz | |
cd src | |
bash make.bash | |
echo "GOROOT=$GOROOT" >> $GITHUB_ENV | |
echo "$GOROOT/bin" >> $GITHUB_PATH | |
- run: go version | |
- run: go get -t ./... | |
working-directory: ${{ github.workspace }}/go/src/github.com/engity-com/go-yaml | |
- run: go test . | |
working-directory: ${{ github.workspace }}/go/src/github.com/engity-com/go-yaml |