...

Text file src/github.com/go-playground/validator/v10/.github/workflows/workflow.yml

Documentation: github.com/go-playground/validator/v10/.github/workflows

     1on:
     2  push:
     3    branches:
     4      - master
     5  pull_request:
     6name: Test
     7jobs:
     8  test:
     9    strategy:
    10      matrix:
    11        go-version: [1.17.x,1.18.x,1.21.x,1.22.x]
    12        os: [ubuntu-latest, macos-latest, windows-latest]
    13    runs-on: ${{ matrix.os }}
    14    steps:
    15      - name: Checkout code
    16        uses: actions/checkout@v4
    17
    18      - name: Install Go
    19        uses: actions/setup-go@v5
    20        with:
    21          go-version: ${{ matrix.go-version }}
    22
    23      - name: Test
    24        run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...
    25
    26      - name: Send Coverage
    27        if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x'
    28        uses: shogo82148/actions-goveralls@v1
    29        with:
    30          path-to-profile: profile.cov
    31
    32  golangci:
    33    name: lint
    34    runs-on: ubuntu-latest
    35    steps:
    36      - uses: actions/checkout@v4
    37      - uses: actions/setup-go@v5
    38        with:
    39          go-version: 1.22.x
    40      - name: golangci-lint
    41        uses: golangci/golangci-lint-action@v4
    42        with:
    43          version: latest

View as plain text