From a737ce9a5973b3129ddfe9ad23a7fdcffbaa1f62 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 1/6] add version.json file --- version.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 version.json diff --git a/version.json b/version.json new file mode 100644 index 0000000..9ed87d7 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v0.3.1" +} From 35703eee66b2c7a59fabd6d4cb9fb71d0a183605 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 2/6] update .github/workflows/go-test.yml --- .github/workflows/go-test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 7010dcc..606e0c7 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -26,13 +26,24 @@ jobs: run: | go version go env + - name: Use msys2 on windows + if: ${{ matrix.os == 'windows' }} + shell: bash + # The executable for msys2 is also called bash.cmd + # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#shells + # If we prepend its location to the PATH + # subsequent 'shell: bash' steps will use msys2 instead of gitbash + run: echo "C:/msys64/usr/bin" >> $GITHUB_PATH - name: Run repo-specific setup uses: ./.github/actions/go-test-setup if: hashFiles('./.github/actions/go-test-setup') != '' - name: Run tests uses: protocol/multiple-go-modules@v1.2 with: - run: go test -v -coverprofile module-coverage.txt ./... + # Use -coverpkg=./..., so that we include cross-package coverage. + # If package ./A imports ./B, and ./A's tests also cover ./B, + # this means ./B's coverage will be significantly higher than 0%. + run: go test -v -coverprofile=module-coverage.txt -coverpkg=./... ./... - name: Run tests (32 bit) if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. uses: protocol/multiple-go-modules@v1.2 @@ -49,7 +60,7 @@ jobs: shell: bash run: echo "COVERAGES=$(find . -type f -name 'module-coverage.txt' | tr -s '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV - name: Upload coverage to Codecov - uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 # v2.0.2 + uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 with: files: '${{ env.COVERAGES }}' env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }} From ccfbaf72354569d91f6c278851096a6ce0107423 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 3/6] update .github/workflows/go-check.yml --- .github/workflows/go-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-check.yml b/.github/workflows/go-check.yml index 6acdd48..e127cf1 100644 --- a/.github/workflows/go-check.yml +++ b/.github/workflows/go-check.yml @@ -27,7 +27,7 @@ jobs: echo "RUNGOGENERATE=true" >> $GITHUB_ENV fi - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@df71e5d0e0ed317ebf43e6e59cf919430fa4b8f2 # 2021.1.1 (v0.2.1) + run: go install honnef.co/go/tools/cmd/staticcheck@c8caa92bad8c27ae734c6725b8a04932d54a147b # 2021.1.2 (v0.2.2) - name: Check that go.mod is tidy uses: protocol/multiple-go-modules@v1.2 with: From b900af860b66f58482da03d36e75a22169bfa5bd Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 4/6] add .github/workflows/releaser.yml --- .github/workflows/releaser.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/releaser.yml diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml new file mode 100644 index 0000000..cdccbf8 --- /dev/null +++ b/.github/workflows/releaser.yml @@ -0,0 +1,11 @@ +# File managed by web3-bot. DO NOT EDIT. +# See https://github.com/protocol/.github/ for details. + +name: Releaser +on: + push: + paths: [ 'version.json' ] + +jobs: + releaser: + uses: protocol/.github/.github/workflows/releaser.yml@master From c69bdcd274ddb609813712c0a7daa091caa92ad4 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 5/6] add .github/workflows/release-check.yml --- .github/workflows/release-check.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/release-check.yml diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml new file mode 100644 index 0000000..fde81c1 --- /dev/null +++ b/.github/workflows/release-check.yml @@ -0,0 +1,11 @@ +# File managed by web3-bot. DO NOT EDIT. +# See https://github.com/protocol/.github/ for details. + +name: Release Checker +on: + pull_request: + paths: [ 'version.json' ] + +jobs: + release-check: + uses: protocol/.github/.github/workflows/release-check.yml@master From c4f4a332e98566d72c0eedb47b7cf161d43f6b3c Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 10 Dec 2021 11:44:56 +0000 Subject: [PATCH 6/6] add .github/workflows/tagpush.yml --- .github/workflows/tagpush.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/tagpush.yml diff --git a/.github/workflows/tagpush.yml b/.github/workflows/tagpush.yml new file mode 100644 index 0000000..d849961 --- /dev/null +++ b/.github/workflows/tagpush.yml @@ -0,0 +1,12 @@ +# File managed by web3-bot. DO NOT EDIT. +# See https://github.com/protocol/.github/ for details. + +name: Tag Push Checker +on: + push: + tags: + - v* + +jobs: + releaser: + uses: protocol/.github/.github/workflows/tagpush.yml@master