From 482116316f13fc0e9bdfbe6dae134242d746199c Mon Sep 17 00:00:00 2001 From: Robert Pirtle Date: Tue, 13 Aug 2024 14:29:57 -0700 Subject: [PATCH] ci: update CI actions for kava-labs fork (#550) * removes incompatible CI workflows * enables CI testing on kava release branches --- .github/workflows/dependabot-update-all.yml | 38 ---------------- .github/workflows/labeler.yml | 17 -------- .github/workflows/project.yml | 17 -------- .github/workflows/test.yml | 48 +-------------------- 4 files changed, 1 insertion(+), 119 deletions(-) delete mode 100644 .github/workflows/dependabot-update-all.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/project.yml diff --git a/.github/workflows/dependabot-update-all.yml b/.github/workflows/dependabot-update-all.yml deleted file mode 100644 index cc5589ab7e57..000000000000 --- a/.github/workflows/dependabot-update-all.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Dependabot Update All Go Modules -on: pull_request - -permissions: - pull-requests: write - -jobs: - update-all: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - uses: actions/checkout@v3 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - # Secret to be added in the repo under Settings > Secrets > Dependabot - token: ${{ secrets.PRBOT_PAT }} - - uses: actions/setup-go@v3 - with: - go-version: "1.19" - check-latest: true - - name: Extract updated dependency - id: deps - run: | - # Extract the dependency name from the PR title - # Example: "build(deps): Bump github.com/cosmos/cosmos-sdk from 0.46.0 to 0.47.0" - # Extracts "github.com/cosmos/cosmos-sdk" and "0.47.0" - echo "::set-output name=name::$(echo "${{ github.event.pull_request.title }}" | cut -d ' ' -f 3)" - echo "::set-output name=version::$(echo "${{ github.event.pull_request.title }}" | cut -d ' ' -f 7)" - - name: Update all Go modules - run: | - ./scripts/go-update-dep-all.sh ${{ format('{0}@v{1}', steps.deps.outputs.name, steps.deps.outputs.version) }} - ./scripts/go-mod-tidy-all.sh - - name: Commit changes - uses: EndBug/add-and-commit@v9 - with: - default_author: github_actions - message: "${{ github.event.pull_request.title }} for all modules" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 2d9b4acec711..000000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Pull Request Labeler" -on: - - pull_request_target - -permissions: - contents: read - -jobs: - labeler: - permissions: - contents: read # for actions/labeler to determine modified files - pull-requests: write # for actions/labeler to add labels to PRs - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@main - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml deleted file mode 100644 index 5978270a57ae..000000000000 --- a/.github/workflows/project.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Add PR to project - -on: - pull_request: - types: - - opened - - reopened - -jobs: - add-to-project: - name: Add pull request to project - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@v0.3.0 - with: - project-url: https://github.com/orgs/cosmos/projects/26 - github-token: ${{ secrets.PERSONAL_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76fa60202e49..511b3eb7d8c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ on: pull_request: push: branches: - - release/v0.47.x + - kava-v0.* permissions: contents: read @@ -141,52 +141,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.1 - 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 - 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