Update technote-space/get-diff-action requirement to v4 (#7510)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
This commit is contained in:
parent
0f70b88ecf
commit
d7ad658e55
|
@ -14,16 +14,16 @@ jobs:
|
||||||
timeout-minutes: 6
|
timeout-minutes: 6
|
||||||
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@master
|
- uses: golangci/golangci-lint-action@master
|
||||||
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.28
|
version: v1.28
|
||||||
args: --timeout 10m
|
args: --timeout 10m
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
|
@ -54,23 +54,21 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- 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/cache@v2.1.2
|
- uses: actions/cache@v2.1.2
|
||||||
with:
|
with:
|
||||||
path: ~/go/bin
|
path: ~/go/bin
|
||||||
key: ${{ runner.os }}-go-runsim-binary
|
key: ${{ runner.os }}-go-runsim-binary
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: test-sim-nondeterminism
|
- name: test-sim-nondeterminism
|
||||||
run: |
|
run: |
|
||||||
make test-sim-nondeterminism
|
make test-sim-nondeterminism
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
test-sim-import-export:
|
test-sim-import-export:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -82,23 +80,23 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
SUFFIX_FILTER: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
SET_ENV_NAME_INSERTIONS: 1
|
||||||
SET_ENV_NAME_LINES: 1
|
SET_ENV_NAME_LINES: 1
|
||||||
- uses: actions/cache@v2.1.2
|
- uses: actions/cache@v2.1.2
|
||||||
with:
|
with:
|
||||||
path: ~/go/bin
|
path: ~/go/bin
|
||||||
key: ${{ runner.os }}-go-runsim-binary
|
key: ${{ runner.os }}-go-runsim-binary
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: test-sim-import-export
|
- name: test-sim-import-export
|
||||||
run: |
|
run: |
|
||||||
make test-sim-import-export
|
make test-sim-import-export
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
test-sim-after-import:
|
test-sim-after-import:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -110,23 +108,23 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
SUFFIX_FILTER: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
SET_ENV_NAME_INSERTIONS: 1
|
||||||
SET_ENV_NAME_LINES: 1
|
SET_ENV_NAME_LINES: 1
|
||||||
- uses: actions/cache@v2.1.2
|
- uses: actions/cache@v2.1.2
|
||||||
with:
|
with:
|
||||||
path: ~/go/bin
|
path: ~/go/bin
|
||||||
key: ${{ runner.os }}-go-runsim-binary
|
key: ${{ runner.os }}-go-runsim-binary
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: test-sim-after-import
|
- name: test-sim-after-import
|
||||||
run: |
|
run: |
|
||||||
make test-sim-after-import
|
make test-sim-after-import
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
test-sim-multi-seed-short:
|
test-sim-multi-seed-short:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -138,20 +136,20 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
SUFFIX_FILTER: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
SET_ENV_NAME_INSERTIONS: 1
|
SET_ENV_NAME_INSERTIONS: 1
|
||||||
SET_ENV_NAME_LINES: 1
|
SET_ENV_NAME_LINES: 1
|
||||||
- uses: actions/cache@v2.1.2
|
- uses: actions/cache@v2.1.2
|
||||||
with:
|
with:
|
||||||
path: ~/go/bin
|
path: ~/go/bin
|
||||||
key: ${{ runner.os }}-go-runsim-binary
|
key: ${{ runner.os }}-go-runsim-binary
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: test-sim-multi-seed-short
|
- name: test-sim-multi-seed-short
|
||||||
run: |
|
run: |
|
||||||
make test-sim-multi-seed-short
|
make test-sim-multi-seed-short
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
|
@ -40,18 +40,18 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v1
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
PREFIX_FILTER: |
|
PREFIX_FILTER: |
|
||||||
cosmovisor
|
cosmovisor
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
- name: Run cosmovisor tests
|
- name: Run cosmovisor tests
|
||||||
run: cd cosmovisor; make
|
run: cd cosmovisor; make
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
split-test-files:
|
split-test-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -95,21 +95,21 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
cat xaa.txt | xargs go test -mod=readonly -timeout 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: filter out DONTCOVER
|
- name: filter out DONTCOVER
|
||||||
run: |
|
run: |
|
||||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
||||||
|
@ -120,11 +120,11 @@ jobs:
|
||||||
echo "Excluding ${filename} from coverage report..."
|
echo "Excluding ${filename} from coverage report..."
|
||||||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||||
done
|
done
|
||||||
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-run-2:
|
test-coverage-run-2:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -137,21 +137,21 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
cat xab.txt | xargs go test -mod=readonly -timeout 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: filter out DONTCOVER
|
- name: filter out DONTCOVER
|
||||||
run: |
|
run: |
|
||||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
||||||
|
@ -162,11 +162,11 @@ jobs:
|
||||||
echo "Excluding ${filename} from coverage report..."
|
echo "Excluding ${filename} from coverage report..."
|
||||||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||||
done
|
done
|
||||||
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-run-3:
|
test-coverage-run-3:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -179,21 +179,21 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
cat xac.txt | xargs go test -mod=readonly -timeout 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: filter out DONTCOVER
|
- name: filter out DONTCOVER
|
||||||
run: |
|
run: |
|
||||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
||||||
|
@ -204,11 +204,11 @@ jobs:
|
||||||
echo "Excluding ${filename} from coverage report..."
|
echo "Excluding ${filename} from coverage report..."
|
||||||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||||
done
|
done
|
||||||
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-run-4:
|
test-coverage-run-4:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -221,21 +221,21 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
cat xad.txt | xargs go test -mod=readonly -timeout 15m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock'
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: filter out DONTCOVER
|
- name: filter out DONTCOVER
|
||||||
run: |
|
run: |
|
||||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
||||||
|
@ -246,11 +246,11 @@ jobs:
|
||||||
echo "Excluding ${filename} from coverage report..."
|
echo "Excluding ${filename} from coverage report..."
|
||||||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||||
done
|
done
|
||||||
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-race-1:
|
test-race-1:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -263,20 +263,20 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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: Run tests with race detector
|
- name: Run tests with race detector
|
||||||
run: cat xaa.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xaa-race-output.txt
|
run: cat xaa.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xaa-race-output.txt
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-aa-race-output"
|
name: "${{ github.sha }}-aa-race-output"
|
||||||
|
@ -293,20 +293,20 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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: Run tests with race detector
|
- name: Run tests with race detector
|
||||||
run: cat xab.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xab-race-output.txt
|
run: cat xab.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xab-race-output.txt
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ab-race-output"
|
name: "${{ github.sha }}-ab-race-output"
|
||||||
|
@ -323,20 +323,20 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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: Run tests with race detector
|
- name: Run tests with race detector
|
||||||
run: cat xac.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xac-race-output.txt
|
run: cat xac.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xac-race-output.txt
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ac-race-output"
|
name: "${{ github.sha }}-ac-race-output"
|
||||||
|
@ -353,20 +353,20 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
run: go version
|
run: go version
|
||||||
- uses: technote-space/get-diff-action@v3
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
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: Run tests with race detector
|
- name: Run tests with race detector
|
||||||
run: cat xad.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xad-race-output.txt
|
run: cat xad.txt | xargs go test -mod=readonly -json -timeout 30m -race -tags='cgo ledger test_ledger_mock' > xad-race-output.txt
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ad-race-output"
|
name: "${{ github.sha }}-ad-race-output"
|
||||||
|
@ -378,58 +378,58 @@ 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
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-aa-race-output"
|
name: "${{ github.sha }}-aa-race-output"
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ab-race-output"
|
name: "${{ github.sha }}-ab-race-output"
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ac-race-output"
|
name: "${{ github.sha }}-ac-race-output"
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: "${{ github.sha }}-ad-race-output"
|
name: "${{ github.sha }}-ad-race-output"
|
||||||
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 }}-go-tparse-binary
|
key: ${{ runner.os }}-go-tparse-binary
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: Generate test report (go test -race)
|
- name: Generate test report (go test -race)
|
||||||
run: cat xa*-race-output.txt | ~/go/bin/tparse
|
run: cat xa*-race-output.txt | ~/go/bin/tparse
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
liveness-test:
|
liveness-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: technote-space/get-diff-action@v1
|
- uses: technote-space/get-diff-action@v4
|
||||||
id: git_diff
|
id: git_diff
|
||||||
with:
|
with:
|
||||||
SUFFIX_FILTER: |
|
PATTERNS: |
|
||||||
.go
|
**/**.go
|
||||||
.mod
|
go.mod
|
||||||
.sum
|
go.sum
|
||||||
- name: start localnet
|
- name: start localnet
|
||||||
run: |
|
run: |
|
||||||
make clean build-simd-linux localnet-start
|
make clean build-simd-linux localnet-start
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
- name: test liveness
|
- name: test liveness
|
||||||
run: |
|
run: |
|
||||||
./contrib/localnet_liveness.sh 100 5 50 localhost
|
./contrib/localnet_liveness.sh 100 5 50 localhost
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue