JACOBIN-592 Small correction to unit test for GETFIELD #2432
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 and test | |
env: | |
GO111MODULE: "on" | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
nix-build-and-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Go | |
uses: actions/setup-go@main | |
with: | |
go-version: '1.21.x' | |
cache: true | |
cache-dependency-path: "**/go.sum" | |
- name: Setup JDK | |
uses: actions/setup-java@main | |
with: | |
distribution: 'oracle' | |
java-version: '21' | |
- name: Build | |
run: | | |
cd src | |
go build -o . -v ./... | |
pwd | |
./jacobin -h | |
- name: Test | |
run: | | |
export JACOBIN_TOP=`pwd` | |
export JACOBIN_TESTDATA=$JACOBIN_TOP/testdata | |
cd src | |
export JACOBIN_EXE=`pwd`/jacobin | |
go test -v -timeout 3m ./... | |
windows-build-and-test: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Go | |
uses: actions/setup-go@main | |
with: | |
go-version: '1.21.x' | |
cache: true | |
cache-dependency-path: "**/go.sum" | |
- name: Setup JDK | |
uses: actions/setup-java@main | |
with: | |
distribution: 'oracle' | |
java-version: '21' | |
- name: Build | |
run: | | |
cd src | |
go build -o . -v ./... | |
echo %CD% | |
dir | |
./jacobin -h | |
- name: Test | |
run: | | |
$Env:JACOBIN_TOP = $PWD | |
$Env:JACOBIN_TOP | |
$Env:JACOBIN_TESTDATA = $Env:JACOBIN_TOP | |
$Env:JACOBIN_TESTDATA += '\testdata' | |
$Env:JACOBIN_TESTDATA | |
cd src | |
$Env:JACOBIN_EXE = $Env:JACOBIN_TOP | |
$Env:JACOBIN_EXE += '\src\jacobin.exe' | |
$Env:JACOBIN_EXE | |
go mod tidy | |
go test -v -timeout 3m ./... |