...

Text file src/github.com/BurntSushi/toml/.github/workflows/test.yml

Documentation: github.com/BurntSushi/toml/.github/workflows

     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.20.x"],
     9          "os":         ["ubuntu-latest", "macos-latest", "windows-latest"]
    10        }
    11      },
    12      "runs-on": "${{ matrix.os }}",
    13      "env": {"GOPROXY": "direct"},
    14      "steps": [{
    15          "name": "Install Go",
    16          "uses": "actions/setup-go@v3",
    17          "with": {"go-version": "${{ matrix.go-version }}"}
    18        }, {
    19          "name": "Checkout code",
    20          "uses": "actions/checkout@v3"
    21        }, {
    22          "name": "Test",
    23          "run":  "go test -race ./..."
    24        }, {
    25          "name": "Test on 32bit",
    26          "if":   "runner.os == 'Linux'",
    27          "run":  "GOARCH=386 go test ./..."
    28        }]
    29    }
    30  }
    31}

View as plain text