Skip to content

Commit

Permalink
CI Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Jan 22, 2024
1 parent 8efc767 commit 03d8042
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,24 @@ jobs:
- name: Test
run: npm run test:cov

- name: Debug
run: |
echo "matrix.os: ${{ matrix.os }}"
echo "matrix.node-version: ${{ matrix.node-version }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event.pull_request.base.repo.name: ${{ github.event.pull_request.base.repo.name }}"
echo "github.event.pull_request.base.repo.full_name: ${{ github.event.pull_request.base.repo.full_name }}"
echo "github.event.pull_request.head.repo.full_name: ${{ github.event.pull_request.head.repo.full_name }}"
echo "github.repository: ${{ github.repository }}"
echo "github.event.pull_request.head.repo.fork: ${{ github.event.pull_request.head.repo.fork }}"
- name: Update Coverage Badge
# Is there a way to tell if a PR is from a forked repository? #26829
# https://github.com/orgs/community/discussions/26829#discussioncomment-3253580
if: >-
matrix.os == 'ubuntu-22.04' && matrix.node-version == 18 && ((
${{ matrix.os == 'ubuntu-22.04' && matrix.node-version == 18 }} && (
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
) || (
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
))
uses: we-cli/coverage-badge-action@main
github.event.pull_request.head.repo.name == github.repository
)
# uses: we-cli/coverage-badge-action@main
run: |
echo "Triggered Coverage Badge"

0 comments on commit 03d8042

Please sign in to comment.