Skip to content

Update go.yml

Update go.yml #20

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
compat-test:
strategy:
matrix:
version: ["1.17", "1.18", "1.19"]
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Print Environment Variable
run: |
echo 'package main' > print_env.go
echo 'import ("fmt"; "os")' >> print_env.go
echo 'func main() { envVar := os.Getenv("HTTP_PORT"); fmt.Println(envVar) }' >> print_env.go
go run print_env.go
# shell: pwsh
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: false # don't use cache for self-hosted runners