Skip to content

#12: set GOPATH

#12: set GOPATH #13

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
env:
GOPATH: ${{ RUNNER_TEMP }}/gopath

Check failure on line 13 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / Go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 13, Col: 15): Unrecognized named-value: 'RUNNER_TEMP'. Located at position 1 within expression: RUNNER_TEMP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: List Env
run: env
- name: Test
run: go test -v ./... -timeout 300s