...

Text file src/github.com/gin-contrib/sessions/.github/workflows/lint.yml

Documentation: github.com/gin-contrib/sessions/.github/workflows

     1name: Run CI Lint
     2on: push
     3
     4jobs:
     5  test:
     6    strategy:
     7      matrix:
     8        os: [ubuntu-latest]
     9        go: [1.16, 1.17, 1.18]
    10    name: ${{ matrix.os }} @ Go ${{ matrix.go }}
    11    runs-on: ${{ matrix.os }}
    12
    13    env:
    14      GO111MODULE: on
    15      TESTTAGS: ${{ matrix.test-tags }}
    16      GOPROXY: https://proxy.golang.org
    17    steps:
    18      - name: Set up Go ${{ matrix.go }}
    19        uses: actions/setup-go@v2
    20        with:
    21          go-version: ${{ matrix.go }}
    22
    23      - name: Checkout Code
    24        uses: actions/checkout@v3
    25        with:
    26          ref: ${{ github.ref }}
    27
    28      - name: golangci-lint
    29        uses: golangci/golangci-lint-action@v2
    30        with:
    31          version: v1.45.0
    32          args: --verbose

View as plain text