Skip to content

Merge pull request #39 from thaJeztah/windows_fix_string_conversion #117

Merge pull request #39 from thaJeztah/windows_fix_string_conversion

Merge pull request #39 from thaJeztah/windows_fix_string_conversion #117

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go: ["1.18.x", "1.19.x", "1.20.x"]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: go mod tidy
run: |
go mod tidy
git diff --exit-code
- name: Lint
run: |
docker run --rm -v `pwd`:/go/src/github.com/moby/term -w /go/src/github.com/moby/term \
golangci/golangci-lint:v1.50.1 golangci-lint run --disable-all -v \
-E govet -E misspell -E gofmt -E ineffassign -E revive