...

Text file src/github.com/moby/term/.github/workflows/test.yml

Documentation: github.com/moby/term/.github/workflows

     1name: Test
     2on: [push, pull_request]
     3jobs:
     4  test:
     5    strategy:
     6      matrix:
     7        go: ["1.18.x", "1.19.x", "1.20.x"]
     8        platform: [ubuntu-latest, windows-latest, macos-latest]
     9    runs-on: ${{ matrix.platform }}
    10    steps:
    11    - name: Install Go ${{ matrix.go }}
    12      uses: actions/setup-go@v4
    13      with:
    14        go-version: ${{ matrix.go }}
    15    - name: Checkout code
    16      uses: actions/checkout@v3
    17    - name: Test
    18      run: go test -v ./...
    19  lint:
    20    runs-on: ubuntu-latest
    21    steps:
    22      - name: Checkout code
    23        uses: actions/checkout@v3
    24      - name: go mod tidy
    25        run: |
    26          go mod tidy
    27          git diff --exit-code
    28      - name: Lint
    29        run: |
    30          docker run --rm -v `pwd`:/go/src/github.com/moby/term -w /go/src/github.com/moby/term \
    31            golangci/golangci-lint:v1.50.1 golangci-lint run --disable-all -v \
    32            -E govet -E misspell -E gofmt -E ineffassign -E revive

View as plain text