...

Text file src/github.com/cpuguy83/go-md2man/v2/.github/workflows/test.yml

Documentation: github.com/cpuguy83/go-md2man/v2/.github/workflows

     1name: CI
     2
     3on:
     4  push:
     5    branches: [master]
     6  pull_request:
     7    branches: [master]
     8
     9jobs:
    10  test:
    11    name: Build
    12    strategy:
    13      matrix:
    14        go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x]
    15        platform: [ubuntu-20.04]
    16    runs-on: ${{ matrix.platform }}
    17    steps:
    18      - name: Install Go
    19        uses: actions/setup-go@v5
    20        with:
    21          go-version: ${{ matrix.go-version }}
    22
    23      - name: Check out code into the Go module directory
    24        uses: actions/checkout@v4
    25
    26      - name: Build
    27        run: make build
    28
    29      - name: Test
    30        run: make test
    31
    32  lint:
    33    runs-on: ubuntu-20.04
    34    steps:
    35      - uses: actions/checkout@v4
    36      - uses: golangci/golangci-lint-action@v4.0.0
    37        with:
    38          version: v1.55

View as plain text