From 2c8d1e4909e9ee287428869fa233f631a95c4f67 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 13 Sep 2024 14:22:48 +0400 Subject: [PATCH] ci: remove archived technote-space/get-diff-action (#4007) This repository has been archived by the owner on Nov 24, 2023. It is now read-only. See https://github.com/technote-space/get-diff-action --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Sergio Mena --- .github/workflows/build.yml | 38 +++++++++------------------ .github/workflows/codeql.yml | 11 +++++--- .github/workflows/docs-toc.yml | 12 ++++----- .github/workflows/e2e.yml | 18 +++++++------ .github/workflows/govulncheck.yml | 21 ++++++++------- .github/workflows/markdown-linter.yml | 4 ++- .github/workflows/tests.yml | 20 +++++++------- abci/example/kvstore/helpers.go | 2 +- 8 files changed, 63 insertions(+), 63 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 035b7fdda0c..5d8102dc976 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,10 +4,22 @@ name: Build # All jobs will pass without running if no *{.go, .mod, .sum} files have been modified on: pull_request: + paths: + - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" merge_group: push: branches: - main + paths: + - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -32,18 +44,8 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/*.go - "!test/" - go.mod - go.sum - Makefile - - name: install run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} make build - if: "env.GIT_DIFF != ''" test_abci_cli: runs-on: ubuntu-latest @@ -58,18 +60,10 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/*.go - go.mod - go.sum - name: install run: make install_abci - if: "env.GIT_DIFF != ''" - run: abci/tests/test_cli/test.sh shell: bash - if: "env.GIT_DIFF != ''" test_apps: runs-on: ubuntu-latest @@ -84,16 +78,8 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/*.go - go.mod - go.sum - name: install run: make install install_abci - if: "env.GIT_DIFF != ''" - name: test_apps run: test/app/test.sh shell: bash - if: "env.GIT_DIFF != ''" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 18a608b4c96..212dda39c50 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,10 +14,15 @@ name: "CodeQL" on: workflow_dispatch: # allow running workflow manually push: - branches: ["main"] + branches: + - main + paths: + - "**.go" pull_request: - # The branches below must be a subset of the branches above - branches: ["main"] + branches: + - main + paths: + - "**.go" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/docs-toc.yml b/.github/workflows/docs-toc.yml index 52bda1060d8..e6bddd1c9f3 100644 --- a/.github/workflows/docs-toc.yml +++ b/.github/workflows/docs-toc.yml @@ -2,9 +2,15 @@ name: Check documentation ToC on: pull_request: + paths: + - docs/architecture/** + - docs/rfc/** push: branches: - main + paths: + - docs/architecture/** + - docs/rfc/** concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,10 +21,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - docs/architecture/** - docs/rfc/** - run: make check-docs-toc - if: env.GIT_DIFF diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9be0ae8fb53..eec2b4208bf 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -4,12 +4,22 @@ name: e2e on: workflow_dispatch: # allow running workflow manually pull_request: + paths: + - "**.go" + - go.mod + - go.sum + - Makefile merge_group: push: branches: - main - v0.3[478].x - v[1-9][0-9]?.x + paths: + - "**.go" + - go.mod + - go.sum + - Makefile concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -31,19 +41,11 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - name: Build working-directory: test/e2e run: make -j2 docker runner - if: "env.GIT_DIFF != ''" - name: Run "${{ matrix.group }}"" testnet working-directory: test/e2e run: ./run-multiple.sh ${{ matrix.group }}.toml - if: "env.GIT_DIFF != ''" diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 1517c7cc840..2b3e8997a3c 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -6,10 +6,22 @@ name: Check for Go vulnerabilities # Run `make vulncheck` from the root of the repo to run this workflow locally. on: pull_request: + paths: + - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" merge_group: push: branches: - main + paths: + - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -25,14 +37,5 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - check-latest: true - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/*.go - go.mod - go.sum - Makefile - name: govulncheck run: make vulncheck - if: "env.GIT_DIFF != ''" diff --git a/.github/workflows/markdown-linter.yml b/.github/workflows/markdown-linter.yml index 5add1671920..cc3fcd477ab 100644 --- a/.github/workflows/markdown-linter.yml +++ b/.github/workflows/markdown-linter.yml @@ -8,10 +8,12 @@ on: - "**.yml" - "**.yaml" pull_request: - branches: [main] + branches: + - main paths: - "**.md" - "**.yml" + - "**.yaml" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ceb94355f36..56019c5f9dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,20 @@ name: Test on: pull_request: + paths: + - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" merge_group: push: paths: - "**.go" + - go.mod + - go.sum + - Makefile + - "!test/**" branches: - main @@ -26,15 +36,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - - uses: technote-space/get-diff-action@v6 - with: - PATTERNS: | - **/**.go - "!test/" - go.mod - go.sum - Makefile + - name: Run Go Tests run: | make test-group-${{ matrix.part }} NUM_SPLIT=20 - if: env.GIT_DIFF diff --git a/abci/example/kvstore/helpers.go b/abci/example/kvstore/helpers.go index 0e09d7c045a..23c8cc917d5 100644 --- a/abci/example/kvstore/helpers.go +++ b/abci/example/kvstore/helpers.go @@ -22,7 +22,7 @@ func RandVal() types.ValidatorUpdate { // RandVals returns a list of cnt validators for initializing // the application. Note that the keys are deterministically // derived from the index in the array, while the power is -// random (Change this if not desired). +// random (change this if not desired). func RandVals(cnt int) []types.ValidatorUpdate { res := make([]types.ValidatorUpdate, cnt) for i := 0; i < cnt; i++ {