Skip to content

Commit

Permalink
🌱 ci-repo: concurrency limits, codecov upload (#2056)
Browse files Browse the repository at this point in the history
  - Setup concurrency on the ci-repo.yml workflow so rapid updates to a PR
    will have old/pending CI runs just cancel (saving resources)

  - Allow the codecov action to upload on any run. This should allow the
    codecov reports on PRs be accurate based on the current commit on main
    (or PR target branch)

Fixes: #1820

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
  • Loading branch information
sjd78 committed Aug 22, 2024
1 parent ab89b15 commit 8ba1055
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:

workflow_call:

concurrency:
group: ci-repo-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unit-test-lookup-image:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,14 +65,14 @@ jobs:
run: npm run test -- --coverage --watchAll=false

- name: Upload to codecov (client)
if: ${{ github.event.pull_request }}
# if: ${{ github.event.pull_request }}
uses: codecov/codecov-action@v4
with:
flags: client
directory: ./client/coverage

- name: Upload to codecov (server)
if: ${{ github.event.pull_request }}
# if: ${{ github.event.pull_request }}
uses: codecov/codecov-action@v4
with:
flags: server
Expand Down

0 comments on commit 8ba1055

Please sign in to comment.