git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/.github/workflows/test.yml (about) 1 { 2 "name": "go test", 3 "on": ["push", "pull_request"], 4 "jobs": { 5 "test": { 6 "strategy": { 7 "matrix": { 8 "go-version": ["1.13.x", "1.14.x", "1.15.x", "1.16.x", "1.17.x", "1.18.x"], 9 "os": ["ubuntu-latest", "macos-latest", "windows-latest"] 10 } 11 }, 12 "runs-on": "${{ matrix.os }}", 13 "env": {"GOPROXY": "direct"}, 14 "steps": [ 15 { 16 "name": "Install Go", 17 "uses": "actions/setup-go@v2", 18 "with": {"go-version": "${{ matrix.go-version }}"} 19 }, 20 { 21 "name": "Checkout code", 22 "uses": "actions/checkout@v2" 23 }, 24 { 25 "name": "Test", 26 "run": "go test -v ./..." 27 }, 28 { 29 "name": "Test on 32bit", 30 "if": "runner.os == 'Linux'", 31 "run": "GOARCH=386 go test -v ./..." 32 } 33 ] 34 } 35 } 36 }