...

Text file src/github.com/magiconair/properties/.github/workflows/go.yml

Documentation: github.com/magiconair/properties/.github/workflows

     1name: properties
     2on: [push, pull_request]
     3jobs:
     4  test:
     5    name: Test ${{ matrix.os }} go${{ matrix.go }}
     6    runs-on: ${{ matrix.os }}
     7    strategy:
     8      matrix:
     9        os: [ubuntu-latest]
    10        go: ["1.19.x","1.18.x","1.7.x"] # code works with 1.3.x but we need 1.7.x for Benchmark.Run
    11
    12    steps:
    13      - name: Setup Go ${{ matrix.go }}
    14        uses: actions/setup-go@v2
    15        with:
    16          go-version: ${{ matrix.go }}
    17        id: go
    18
    19      - name: Check out code into the Go module directory
    20        uses: actions/checkout@v1
    21        with:
    22          path: go/src/github.com/magiconair/properties
    23
    24      - name: Run Tests (GOPATH)
    25        run: go test ./...
    26        env:
    27          GOPATH: /home/runner/work/properties/go

View as plain text