From ddd060552baada2f32351df815ad80806374c345 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:29:21 +0300 Subject: [PATCH 01/33] a try to build on github actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4f43092 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push] + +jobs: + build: + + 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] + + env: + GO111MODULE: on + + steps: + - uses: actions/checkout@v2 + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + - name: Build + run: go test -v ./... From f06f22b8a7e8c7cb791c742b09c79873f0e5d01d Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:35:10 +0300 Subject: [PATCH 02/33] try to build on go 1.8 --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f43092..3474251 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,8 @@ jobs: strategy: matrix: - go: [1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] + go: [1.8] +# go: [1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] env: GO111MODULE: on @@ -20,5 +21,8 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} + - name: "Setup dependencies" + if: ${{ matrix.go == '1.8' }} + run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd -; fi - name: Build run: go test -v ./... From 792bd66d7d7690ffb68d4361d79986e1b9ae9362 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:36:06 +0300 Subject: [PATCH 03/33] yaml syntax fix --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3474251..ebce845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,6 @@ jobs: go-version: ${{ matrix.go }} - name: "Setup dependencies" if: ${{ matrix.go == '1.8' }} - run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd -; fi + run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd -; fi - name: Build run: go test -v ./... From e84b87d4b0023eed92969a1b1a7184f21393c2b4 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:37:09 +0300 Subject: [PATCH 04/33] remove remnants of bash if --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebce845..9fd0330 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,6 @@ jobs: go-version: ${{ matrix.go }} - name: "Setup dependencies" if: ${{ matrix.go == '1.8' }} - run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd -; fi + run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build run: go test -v ./... From 4b92e3c68ed915232c8b8f55ae1c0ee319de2e12 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:39:00 +0300 Subject: [PATCH 05/33] try to fix dependencies --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fd0330..8649b9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,6 @@ jobs: go-version: ${{ matrix.go }} - name: "Setup dependencies" if: ${{ matrix.go == '1.8' }} - run: cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - + run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build run: go test -v ./... From 0f69c4e35c4efa83c83c8e93830482340eb11e73 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:40:19 +0300 Subject: [PATCH 06/33] comment 1.8 build --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8649b9d..9126bc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: - go: [1.8] -# go: [1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] +# go: [1.8] + go: [1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] env: GO111MODULE: on @@ -21,8 +21,8 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - - name: "Setup dependencies" - if: ${{ matrix.go == '1.8' }} - run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - +# - name: "Setup dependencies" +# if: ${{ matrix.go == '1.8' }} +# run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build run: go test -v ./... From e6d3ac008e18144ee9404617c973d34fe04461cd Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:41:37 +0300 Subject: [PATCH 07/33] comment 1.9 build also --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9126bc0..510e500 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: -# go: [1.8] - go: [1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] +# go: [1.8, 1.9] + go: [1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] env: GO111MODULE: on From 6420e21f1e2b88d384fbb5b158e9ddbcc5f8327f Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:42:21 +0300 Subject: [PATCH 08/33] better go 1.10 handling --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 510e500..cf3b8b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: # go: [1.8, 1.9] - go: [1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] + go: ['1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] env: GO111MODULE: on From 7b6ee05878c5c15af35b09a4504698b8dfbf16dd Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:44:20 +0300 Subject: [PATCH 09/33] debug fo version --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf3b8b1..8ac3344 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: -# go: [1.8, 1.9] - go: ['1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] +# go: [1.8, 1.9, '1.10'] + go: [1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] env: GO111MODULE: on @@ -21,6 +21,8 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} + - name: Go version + run: go version # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From 8ad8e682367aa02ffc96d9dee115e8d33ee8e284 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:46:24 +0300 Subject: [PATCH 10/33] do we need go modules env var? --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ac3344..45004b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,10 +10,10 @@ jobs: strategy: matrix: # go: [1.8, 1.9, '1.10'] - go: [1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] + go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] - env: - GO111MODULE: on +# env: +# GO111MODULE: on steps: - uses: actions/checkout@v2 @@ -21,8 +21,6 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - - name: Go version - run: go version # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From 2304cc71ddf6fdab542215c464068c6527591da7 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:48:13 +0300 Subject: [PATCH 11/33] we don't --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45004b7..f43dec8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,6 @@ jobs: # go: [1.8, 1.9, '1.10'] go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] -# env: -# GO111MODULE: on - steps: - uses: actions/checkout@v2 - name: Set up Go ${{ matrix.go }} From 5dd2816540b41408a6069af5bf852b6e5a8de143 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Tue, 6 Apr 2021 12:49:31 +0300 Subject: [PATCH 12/33] add badge to README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7e05bc..f6ca798 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Build Status](https://travis-ci.com/joomcode/errorx.svg?branch=master)](https://travis-ci.com/joomcode/errorx) +[![Github Actions Build Status](https://github.com/joomcode/errorx/workflows/CI/badge.svg)](https://github.com/joomcode/errorx/actions) +[![Travis Build Status](https://travis-ci.com/joomcode/errorx.svg?branch=master)](https://travis-ci.com/joomcode/errorx) [![GoDoc](https://img.shields.io/static/v1?label=godev&message=reference&color=00add8)](https://pkg.go.dev/github.com/joomcode/errorx?tab=doc) [![Report Card](https://goreportcard.com/badge/github.com/joomcode/errorx)](https://goreportcard.com/report/github.com/joomcode/errorx) [![gocover.io](https://gocover.io/_badge/github.com/joomcode/errorx)](https://gocover.io/github.com/joomcode/errorx) From 37abd0683b2b97ee5a355b2bc550e4397f83db37 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:24:26 +0300 Subject: [PATCH 13/33] another try to build on 1.10 --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f43dec8..3f6d98c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: -# go: [1.8, 1.9, '1.10'] - go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] + go: ['1.10'] +# go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] steps: - uses: actions/checkout@v2 @@ -18,6 +18,8 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} + - name: "Setup dependencies" + run: go get ./... -d # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From 67b121d896980eac29e07da4749062312cef4ecf Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:26:05 +0300 Subject: [PATCH 14/33] another try --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f6d98c..8d123c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go get ./... -d + run: go build ./... # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From 95fdfb01f0c1106cce468b00e32191291e36ef63 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:27:17 +0300 Subject: [PATCH 15/33] more --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d123c1..8164659 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go build ./... + run: go get ./... # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From bfc21ef78f3bcadb44f65106c92904576ad0213e Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:30:02 +0300 Subject: [PATCH 16/33] try to fix path --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8164659..7692d23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + path: ./src/github.com/${{ github.repository }} - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: From 6352f9548040459910a3a2ca595b9cddaac4e848 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:32:03 +0300 Subject: [PATCH 17/33] echo gopath --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7692d23..85e238d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} + - name: "echo gopath" + run: echo $GOPATH - name: "Setup dependencies" run: go get ./... # - name: "Setup dependencies" From 99bc3367cf23b61306c77e720be6d74d810201d4 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:36:16 +0300 Subject: [PATCH 18/33] another try --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85e238d..bdaca5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,17 +15,19 @@ jobs: steps: - uses: actions/checkout@v2 with: - path: ./src/github.com/${{ github.repository }} + path: go/src/github.com/${{ github.repository }} - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - name: "echo gopath" run: echo $GOPATH - - name: "Setup dependencies" - run: go get ./... +# - name: "Setup dependencies" +# run: go get ./... # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build run: go test -v ./... + env: + GOPATH: go From c69db06f40669bef7e3b1aa871f96b2b01c83197 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:39:57 +0300 Subject: [PATCH 19/33] 1 --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdaca5f..4f636aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,6 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - - name: "echo gopath" - run: echo $GOPATH # - name: "Setup dependencies" # run: go get ./... # - name: "Setup dependencies" @@ -30,4 +28,4 @@ jobs: - name: Build run: go test -v ./... env: - GOPATH: go + GOPATH: /home/runner/work/joomcode/go From c266160f6031d781f8179c336b66c72f8d7b97db Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:41:08 +0300 Subject: [PATCH 20/33] 2 --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f636aa..fe344c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,10 @@ jobs: uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} -# - name: "Setup dependencies" -# run: go get ./... + - name: "Setup dependencies" + run: go get ./... + env: + GOPATH: /home/runner/work/joomcode/go # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - From b0ed5c13091b741a6b132f6f32b3337df7a1cbb1 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:43:05 +0300 Subject: [PATCH 21/33] 3 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe344c1..206dae9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,11 @@ jobs: - name: "Setup dependencies" run: go get ./... env: - GOPATH: /home/runner/work/joomcode/go + GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build run: go test -v ./... env: - GOPATH: /home/runner/work/joomcode/go + GOPATH: /home/runner/work/errorx/errorx/go From d6a678cb373d86f72b43a39c4e6f262ddaffe781 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:44:47 +0300 Subject: [PATCH 22/33] 4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 206dae9..89706c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go get ./... + run: go get -d ./... env: GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" From 4cd9d8b4eb46d592a79fe7411d045dc50ed77891 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:46:32 +0300 Subject: [PATCH 23/33] 6 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89706c8..9394c3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go get -d ./... + run: go get -t ./... env: GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" From 0c23881e647089012bac70c65259722785f61e81 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:48:47 +0300 Subject: [PATCH 24/33] 7 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9394c3f..f0329c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go get -t ./... + run: go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - env: GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" From 15a1beaf7cb5b5d1fe83a8bb7db30def1d900933 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:53:39 +0300 Subject: [PATCH 25/33] 8 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0329c1..b16d4cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,6 @@ jobs: # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build - run: go test -v ./... + run: go test -v $GOPATH/src/github.com/errorx/... env: GOPATH: /home/runner/work/errorx/errorx/go From cd6494a63220a43767cbdf960284942deabebb0f Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 12:55:25 +0300 Subject: [PATCH 26/33] 9 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b16d4cd..9a70ceb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,6 @@ jobs: # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build - run: go test -v $GOPATH/src/github.com/errorx/... + run: go test -v $GOPATH/src/github.com/${{ github.repository }}/... env: GOPATH: /home/runner/work/errorx/errorx/go From 8bb5d9cfd25b4d4bde23ee27483d70284c92c6de Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 13:50:58 +0300 Subject: [PATCH 27/33] 10 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a70ceb..ab2524a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,6 @@ jobs: # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build - run: go test -v $GOPATH/src/github.com/${{ github.repository }}/... + run: cd go/src/github.com/${{ github.repository }} && test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go From 6ceb2eb97df7c350730ff7a8e39319655a7b0c34 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 13:53:20 +0300 Subject: [PATCH 28/33] pwds --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab2524a..26bde28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,13 +21,13 @@ jobs: with: go-version: ${{ matrix.go }} - name: "Setup dependencies" - run: go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - + run: pwd && go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && pwd && git checkout v1.2.2 && cd - && pwd env: GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build - run: cd go/src/github.com/${{ github.repository }} && test -v ./... + run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go From 43120f46b8f45824ad1db67ecb70bd9eba67941b Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 13:56:21 +0300 Subject: [PATCH 29/33] 11 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26bde28..a4f3cf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,6 @@ jobs: # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build - run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && test -v ./... + run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go From f7b0af23ee5b62ab764bfada7edd36cec64cdb34 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 14:01:18 +0300 Subject: [PATCH 30/33] full build please --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4f3cf6..e0f7dbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,25 +9,36 @@ jobs: strategy: matrix: - go: ['1.10'] -# go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] +# go: ['1.10'] + go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] steps: - - uses: actions/checkout@v2 + - name: Checkout to GOPATH + if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} + uses: actions/checkout@v2 with: path: go/src/github.com/${{ github.repository }} + - name: Checkout with no GOPATH + if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} + uses: actions/checkout@v2 - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - name: "Setup dependencies" + if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} run: pwd && go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && pwd && git checkout v1.2.2 && cd - && pwd env: GOPATH: /home/runner/work/errorx/errorx/go # - name: "Setup dependencies" # if: ${{ matrix.go == '1.8' }} # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - - name: Build + - name: Build no modules + if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go + - name: Build with modules + if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} + run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... + From 0c865522cf5d373ce45eb5609c5bdec1dc252670 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 14:03:05 +0300 Subject: [PATCH 31/33] full build 2 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f7dbf..daebb85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: # go: ['1.10'] - go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16] + go: [1.8, 1.9, '1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] steps: - name: Checkout to GOPATH @@ -35,10 +35,10 @@ jobs: # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build no modules if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} - run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... - env: - GOPATH: /home/runner/work/errorx/errorx/go + run: go test -v ./... - name: Build with modules if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... + env: + GOPATH: /home/runner/work/errorx/errorx/go From 2594df394517f2da97567c70f0b0b93b6c9260fb Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 14:04:54 +0300 Subject: [PATCH 32/33] 3 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index daebb85..2cb9b61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,10 @@ jobs: # run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - - name: Build no modules if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} - run: go test -v ./... - - name: Build with modules - if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go + - name: Build with modules + if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} + run: go test -v ./... From 637966b23f8a3bd89e10fa4ef40c8cec1d464a90 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Wed, 7 Apr 2021 14:08:25 +0300 Subject: [PATCH 33/33] polish --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cb9b61..0cae070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,35 +9,37 @@ jobs: strategy: matrix: -# go: ['1.10'] go: [1.8, 1.9, '1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16] steps: + - name: Checkout to GOPATH if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} uses: actions/checkout@v2 with: path: go/src/github.com/${{ github.repository }} + - name: Checkout with no GOPATH if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} uses: actions/checkout@v2 + - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} + - name: "Setup dependencies" if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} - run: pwd && go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && pwd && git checkout v1.2.2 && cd - && pwd + run: go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - && pwd env: GOPATH: /home/runner/work/errorx/errorx/go -# - name: "Setup dependencies" -# if: ${{ matrix.go == '1.8' }} -# run: go get ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - + - name: Build no modules if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }} - run: pwd && cd go/src/github.com/${{ github.repository }} && pwd && go test -v ./... + run: cd go/src/github.com/${{ github.repository }} && go test -v ./... env: GOPATH: /home/runner/work/errorx/errorx/go + - name: Build with modules if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }} run: go test -v ./...