Skip to content

Add JSON Output Option and Refactor Data Preparation #58

Add JSON Output Option and Refactor Data Preparation

Add JSON Output Option and Refactor Data Preparation #58

Workflow file for this run

name: test
on: pull_request
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
id: vars
run: |
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
echo "Using Go version ${goVersion}"
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.vars.outputs.go_version }}
-
name: Download Go modules
run: go mod download
-
name: Run Go Tests
run: go test -v $(go list ./... | grep -v /vendor/)