Browse Source

build(deps): Bump technote-space/get-diff-action from v3 to v4 (#5485)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
pull/5489/head
dependabot[bot] 4 years ago
committed by GitHub
parent
commit
710ed63f55
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 97 deletions
  1. +36
    -44
      .github/workflows/coverage.yml
  2. +5
    -7
      .github/workflows/e2e.yml
  3. +6
    -6
      .github/workflows/lint.yaml
  4. +31
    -39
      .github/workflows/tests.yml
  5. +2
    -1
      state/export_test.go

+ 36
- 44
.github/workflows/coverage.yml View File

@ -38,101 +38,93 @@ jobs:
needs: split-test-files needs: split-test-files
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: "${{ github.sha }}-aa" name: "${{ github.sha }}-aa"
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test & coverage report creation - name: test & coverage report creation
run: | run: |
cat xaa.txt | xargs go test -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic cat xaa.txt | xargs go test -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: codecov/codecov-action@v1.0.13 - uses: codecov/codecov-action@v1.0.13
with: with:
file: ./coverage.txt file: ./coverage.txt
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test-coverage-part-2: test-coverage-part-2:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: split-test-files needs: split-test-files
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: "${{ github.sha }}-ab" name: "${{ github.sha }}-ab"
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test & coverage report creation - name: test & coverage report creation
run: | run: |
cat xab.txt | xargs go test -mod=readonly -timeout 5m -race -coverprofile=coverage.txt -covermode=atomic cat xab.txt | xargs go test -mod=readonly -timeout 5m -race -coverprofile=coverage.txt -covermode=atomic
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: codecov/codecov-action@v1.0.13 - uses: codecov/codecov-action@v1.0.13
with: with:
file: ./coverage.txt file: ./coverage.txt
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test-coverage-part-3: test-coverage-part-3:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: split-test-files needs: split-test-files
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: "${{ github.sha }}-ac" name: "${{ github.sha }}-ac"
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test & coverage report creation - name: test & coverage report creation
run: | run: |
cat xac.txt | xargs go test -mod=readonly -timeout 10m -race -coverprofile=coverage.txt -covermode=atomic cat xac.txt | xargs go test -mod=readonly -timeout 10m -race -coverprofile=coverage.txt -covermode=atomic
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: codecov/codecov-action@v1.0.13 - uses: codecov/codecov-action@v1.0.13
with: with:
file: ./coverage.txt file: ./coverage.txt
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test-coverage-part-4: test-coverage-part-4:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: split-test-files needs: split-test-files
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: "${{ github.sha }}-ad" name: "${{ github.sha }}-ad"
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test & coverage report creation - name: test & coverage report creation
run: | run: |
cat xad.txt | xargs go test -mod=readonly -timeout 5m -race -coverprofile=coverage.txt -covermode=atomic cat xad.txt | xargs go test -mod=readonly -timeout 5m -race -coverprofile=coverage.txt -covermode=atomic
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: codecov/codecov-action@v1.0.13 - uses: codecov/codecov-action@v1.0.13
with: with:
file: ./coverage.txt file: ./coverage.txt
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF

+ 5
- 7
.github/workflows/e2e.yml View File

@ -14,14 +14,12 @@ jobs:
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Build - name: Build
working-directory: test/e2e working-directory: test/e2e


+ 6
- 6
.github/workflows/lint.yaml View File

@ -14,16 +14,16 @@ jobs:
timeout-minutes: 4 timeout-minutes: 4
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: golangci/golangci-lint-action@v2.2.1 - uses: golangci/golangci-lint-action@v2.2.1
with: with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.30 version: v1.30
args: --timeout 10m args: --timeout 10m
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF

+ 31
- 39
.github/workflows/tests.yml View File

@ -24,14 +24,12 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Set GOBIN - name: Set GOBIN
run: | run: |
echo "::add-path::$(go env GOPATH)/bin" echo "::add-path::$(go env GOPATH)/bin"
@ -44,13 +42,13 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
# Cache binaries for use by other jobs # Cache binaries for use by other jobs
- uses: actions/cache@v2.1.2 - uses: actions/cache@v2.1.2
with: with:
path: ~/go/bin path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-tm-binary key: ${{ runner.os }}-${{ github.sha }}-tm-binary
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test_abci_apps: test_abci_apps:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -58,14 +56,12 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Set GOBIN - name: Set GOBIN
run: | run: |
echo "::add-path::$(go env GOPATH)/bin" echo "::add-path::$(go env GOPATH)/bin"
@ -75,16 +71,16 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: actions/cache@v2.1.2 - uses: actions/cache@v2.1.2
with: with:
path: ~/go/bin path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-tm-binary key: ${{ runner.os }}-${{ github.sha }}-tm-binary
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test_abci_apps - name: test_abci_apps
run: abci/tests/test_app/test.sh run: abci/tests/test_app/test.sh
shell: bash shell: bash
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test_abci_cli: test_abci_cli:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -92,14 +88,12 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Set GOBIN - name: Set GOBIN
run: | run: |
echo "::add-path::$(go env GOPATH)/bin" echo "::add-path::$(go env GOPATH)/bin"
@ -109,15 +103,15 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: actions/cache@v2.1.2 - uses: actions/cache@v2.1.2
with: with:
path: ~/go/bin path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-tm-binary key: ${{ runner.os }}-${{ github.sha }}-tm-binary
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- run: abci/tests/test_cli/test.sh - run: abci/tests/test_cli/test.sh
shell: bash shell: bash
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
test_apps: test_apps:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -125,14 +119,12 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
- uses: technote-space/get-diff-action@v4
with: with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Set GOBIN - name: Set GOBIN
run: | run: |
echo "::add-path::$(go env GOPATH)/bin" echo "::add-path::$(go env GOPATH)/bin"
@ -142,13 +134,13 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- uses: actions/cache@v2.1.2 - uses: actions/cache@v2.1.2
with: with:
path: ~/go/bin path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-tm-binary key: ${{ runner.os }}-${{ github.sha }}-tm-binary
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF
- name: test_apps - name: test_apps
run: test/app/test.sh run: test/app/test.sh
shell: bash shell: bash
if: "env.GIT_DIFF != ''"
if: env.GIT_DIFF

+ 2
- 1
state/export_test.go View File

@ -1,11 +1,12 @@
package state package state
import ( import (
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
tmstate "github.com/tendermint/tendermint/proto/tendermint/state" tmstate "github.com/tendermint/tendermint/proto/tendermint/state"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"
) )
// //


Loading…
Cancel
Save