diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index fb031d3ec8e8..000000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Release -# This workflow helps with creating releases. -# This job will only be triggered when a tag (vX.X.x) is pushed -on: - push: - # Sequence of patterns matched against refs/tags - tags: - - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 - -permissions: - contents: read - -jobs: - release: - permissions: - contents: write # for goreleaser/goreleaser-action to create a GitHub release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: "1.21" - check-latest: true - - name: Unshallow - run: git fetch --prune --unshallow - - name: Create release - uses: goreleaser/goreleaser-action@v3 - with: - args: release --rm-dist --release-notes ./RELEASE_NOTES.md - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - release-success: - needs: release - if: ${{ success() }} - runs-on: ubuntu-latest - steps: - - name: Notify Slack on success - uses: rtCamp/action-slack-notify@v2.2.1 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_CHANNEL: cosmos-tech - SLACK_USERNAME: Cosmos SDK Release Bot - SLACK_ICON: https://github.com/avatars/t/5997665?size=64 - SLACK_COLOR: good - SLACK_TITLE: "Cosmos SDK ${{ github.ref_name }} is tagged :tada:" - SLACK_MESSAGE: "@channel :point_right: https://github.com/cosmos/cosmos-sdk/releases/tag/${{ github.ref_name }}" - SLACK_FOOTER: "" - SLACK_LINK_NAMES: true - MSG_MINIMAL: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24ca58bfb2a4..88cc94243064 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -144,52 +144,6 @@ jobs: name: "${{ github.sha }}-e2e-coverage" path: ./tests/e2e-profile.out - repo-analysis: - runs-on: ubuntu-latest - needs: [tests, test-integration, test-e2e] - steps: - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff - with: - PATTERNS: | - **/*.go - go.mod - go.sum - **/go.mod - **/go.sum - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-00-coverage" - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-01-coverage" - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-02-coverage" - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-03-coverage" - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-integration-coverage" - - uses: actions/download-artifact@v3 - if: env.GIT_DIFF - with: - name: "${{ github.sha }}-e2e-coverage" - continue-on-error: true - - name: sonarcloud - if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }} - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - liveness-test: runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.gitpatches/ci_jobs-remove-actions.patch b/.gitpatches/ci_jobs-remove-actions.patch new file mode 100644 index 000000000000..cec46f6f55e8 --- /dev/null +++ b/.gitpatches/ci_jobs-remove-actions.patch @@ -0,0 +1,114 @@ +diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml +deleted file mode 100644 +index fb031d3ec8..0000000000 +--- a/.github/workflows/release.yml ++++ /dev/null +@@ -1,51 +0,0 @@ +-name: Release +-# This workflow helps with creating releases. +-# This job will only be triggered when a tag (vX.X.x) is pushed +-on: +- push: +- # Sequence of patterns matched against refs/tags +- tags: +- - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 +- +-permissions: +- contents: read +- +-jobs: +- release: +- permissions: +- contents: write # for goreleaser/goreleaser-action to create a GitHub release +- runs-on: ubuntu-latest +- steps: +- - uses: actions/checkout@v4 +- - name: Install Go +- uses: actions/setup-go@v4 +- with: +- go-version: "1.21" +- check-latest: true +- - name: Unshallow +- run: git fetch --prune --unshallow +- - name: Create release +- uses: goreleaser/goreleaser-action@v3 +- with: +- args: release --rm-dist --release-notes ./RELEASE_NOTES.md +- env: +- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +- +- release-success: +- needs: release +- if: ${{ success() }} +- runs-on: ubuntu-latest +- steps: +- - name: Notify Slack on success +- uses: rtCamp/action-slack-notify@v2.2.1 +- env: +- SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} +- SLACK_CHANNEL: cosmos-tech +- SLACK_USERNAME: Cosmos SDK Release Bot +- SLACK_ICON: https://github.com/avatars/t/5997665?size=64 +- SLACK_COLOR: good +- SLACK_TITLE: "Cosmos SDK ${{ github.ref_name }} is tagged :tada:" +- SLACK_MESSAGE: "@channel :point_right: https://github.com/cosmos/cosmos-sdk/releases/tag/${{ github.ref_name }}" +- SLACK_FOOTER: "" +- SLACK_LINK_NAMES: true +- MSG_MINIMAL: true +diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml +index 24ca58bfb2..88cc942430 100644 +--- a/.github/workflows/test.yml ++++ b/.github/workflows/test.yml +@@ -144,52 +144,6 @@ jobs: + name: "${{ github.sha }}-e2e-coverage" + path: ./tests/e2e-profile.out + +- repo-analysis: +- runs-on: ubuntu-latest +- needs: [tests, test-integration, test-e2e] +- steps: +- - uses: actions/checkout@v3 +- - uses: technote-space/get-diff-action@v6.1.2 +- id: git_diff +- with: +- PATTERNS: | +- **/*.go +- go.mod +- go.sum +- **/go.mod +- **/go.sum +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-00-coverage" +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-01-coverage" +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-02-coverage" +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-03-coverage" +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-integration-coverage" +- - uses: actions/download-artifact@v3 +- if: env.GIT_DIFF +- with: +- name: "${{ github.sha }}-e2e-coverage" +- continue-on-error: true +- - name: sonarcloud +- if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }} +- uses: SonarSource/sonarcloud-github-action@master +- env: +- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +- + liveness-test: + runs-on: ubuntu-latest + timeout-minutes: 15