mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 05:25:35 +00:00
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>
This commit is contained in:
committed by
Erik Grinaker
parent
bf42bf0fd5
commit
51b8d3a153
72
.github/workflows/coverage.yml
vendored
72
.github/workflows/coverage.yml
vendored
@@ -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
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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
|
||||||
|
|||||||
12
.github/workflows/e2e.yml
vendored
12
.github/workflows/e2e.yml
vendored
@@ -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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: test/e2e
|
working-directory: test/e2e
|
||||||
|
|||||||
12
.github/workflows/lint.yaml
vendored
12
.github/workflows/lint.yaml
vendored
@@ -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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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
|
||||||
|
|||||||
70
.github/workflows/tests.yml
vendored
70
.github/workflows/tests.yml
vendored
@@ -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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
|
||||||
SET_ENV_NAME_LINES: 1
|
|
||||||
- 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
|
||||||
|
|||||||
@@ -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"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user