98edb4ffc7
Additional outputs are: - GOPATH as `go-path` string - GOMOD as `go-mod` string - GOCACHE as `go-cache` string - GOMODCACHE as `go-mod-cache` string - `go env` as `go-env` JSON
25 lines
643 B
YAML
25 lines
643 B
YAML
name: Test outputs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
setup-go-env:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- id: setup-go
|
|
uses: ./
|
|
- run: |
|
|
echo GOPATH=${{ steps.setup-go.outputs.go-path }}
|
|
echo GOMOD=${{ steps.setup-go.outputs.go-mod }}
|
|
echo GOMODCACHE=${{ steps.setup-go.outputs.go-mod-cache }}
|
|
echo GOVERSION=${{ steps.setup-go.outputs.go-version }}
|
|
echo GOCACHE=${{ steps.setup-go.outputs.go-cache }}
|
|
|
|
echo Go environment variables json:
|
|
jq . <<< '${{ steps.setup-go.outputs.go-env }}'
|