From 5461120ea7768d21ce8d23bb7393da6568b6ddbc Mon Sep 17 00:00:00 2001 From: Harry Wray Date: Tue, 11 Mar 2025 20:23:09 -0400 Subject: [PATCH] Initial commit: cleanup workflows --- .github/workflows/lint-pr.yml | 47 ----------------------------------- .github/workflows/test.yml | 13 ++-------- 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/lint-pr.yml diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml deleted file mode 100644 index 6c5cd2fc2..000000000 --- a/.github/workflows/lint-pr.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: "Lint PR" - -on: - pull_request_target: - types: - - opened - - edited - - synchronize - -permissions: - contents: read - -jobs: - main: - permissions: - pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs - statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v5.5.3 - id: lint_pr_title - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: marocchino/sticky-pull-request-comment@v2 - # When the previous steps fails, the workflow would stop. By adding this - # condition you can continue the execution with the populated error message. - if: always() && (steps.lint_pr_title.outputs.error_message != null) - with: - header: pr-title-lint-error - message: | - Hey there and thank you for opening this pull request! 👋🏼 - - We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. - - Details: - - ``` - ${{ steps.lint_pr_title.outputs.error_message }} - ``` - - # Delete a previous comment when the issue has been resolved - - if: ${{ steps.lint_pr_title.outputs.error_message == null }} - uses: marocchino/sticky-pull-request-comment@v2 - with: - header: pr-title-lint-error - delete: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e81243cd..390477061 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Tests / Code Coverage +name: Tests on: pull_request: merge_group: @@ -36,13 +36,4 @@ jobs: - name: tests if: env.GIT_DIFF run: | - make test - - name: test-cover - run: | - make test-cover - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v5 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - files: cover.out + make test \ No newline at end of file