Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/code-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Validate

on:
push:
branches:
- main
pull_request:
types: [opened, edited, synchronize, reopened]
branches:
Expand All @@ -10,6 +13,7 @@ on:

permissions:
contents: read
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -61,16 +65,22 @@ jobs:
if: always() && steps.validate.outcome == 'success'
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
use_oidc: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }}
token: ${{ secrets.CODECOV_TOKEN }}
slug: archgate/cli
files: coverage/lcov.info
disable_search: true
fail_ci_if_error: false
- name: Upload test results to Codecov
if: always() && steps.validate.outcome != 'skipped'
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
use_oidc: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }}
token: ${{ secrets.CODECOV_TOKEN }}
slug: archgate/cli
files: coverage/junit.xml
report-type: test_results
disable_search: true
report_type: test_results
fail_ci_if_error: false
- name: Save Bun Cache
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,22 @@ jobs:
if: always() && steps.validate.outcome == 'success'
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}
slug: archgate/cli
files: coverage/lcov.info
disable_search: true
fail_ci_if_error: false
- name: Upload test results to Codecov
if: always() && steps.validate.outcome != 'skipped'
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
use_oidc: true
token: ${{ secrets.CODECOV_TOKEN }}
slug: archgate/cli
files: coverage/junit.xml
report-type: test_results
disable_search: true
report_type: test_results
fail_ci_if_error: false
- name: Ensure main is up-to-date before release
run: git pull --rebase origin main
Expand Down
Loading