From 5cc1e9d0b9ae44e22c792287d6b399cb29bbfa27 Mon Sep 17 00:00:00 2001 From: Marat Reymers Date: Sun, 28 Aug 2022 11:57:35 +0300 Subject: [PATCH] Check compatibility on CI --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c7d50..7cb8543 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,35 @@ jobs: - run: go test -race -p=8 -parallel=8 -tags=example -coverpkg ./... -coverprofile=coverage.out ./... - uses: codecov/codecov-action@v3 + compatibility: + runs-on: ubuntu-latest + strategy: + matrix: + go: + - "1.8" + - "1.9" + - "1.10" + - "1.11" + - "1.12" + - "1.13" + - "1.14" + - "1.15" + - "1.16" + - "1.17" + - "1.18" + - "1.19" + steps: + - uses: actions/checkout@v3 + with: + path: go/src/github.com/maratori/pt + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} + - run: go test -race -p=8 -parallel=8 -tags=example ./... + working-directory: ${{ github.workspace }}/go/src/github.com/maratori/pt + env: + GOPATH: ${{ github.workspace }}/go + lint: runs-on: ubuntu-latest steps: