...

Text file src/github.com/pelletier/go-toml/v2/.github/workflows/workflow.yml

Documentation: github.com/pelletier/go-toml/v2/.github/workflows

     1name: test
     2on:
     3  push:
     4    branches:
     5      - v2
     6  pull_request:
     7    branches:
     8      - v2
     9
    10jobs:
    11  build:
    12    strategy:
    13      matrix:
    14        os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
    15        go: [ '1.20', '1.21' ]
    16    runs-on: ${{ matrix.os }}
    17    name: ${{ matrix.go }}/${{ matrix.os }}
    18    steps:
    19      - uses: actions/checkout@v4
    20        with:
    21          fetch-depth: 0
    22      - name: Setup go ${{ matrix.go }}
    23        uses: actions/setup-go@v4
    24        with:
    25          go-version: ${{ matrix.go }}
    26      - name: Run unit tests
    27        run: go test -race ./...
    28  release-check:
    29    if: ${{ github.ref != 'refs/heads/v2' }}
    30    uses: pelletier/go-toml/.github/workflows/release.yml@v2
    31    with:
    32      args: --snapshot

View as plain text