Skip to content

Commit

Permalink
Remove git-branch and git-commit from coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed Nov 25, 2024
1 parent d194753 commit e1746ac
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request-received.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: pr-bundle
path: '.hass/config/www/custom-sidebar.js'
include-hidden-files: true
path: .hass/
retention-days: 30
26 changes: 21 additions & 5 deletions .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ jobs:
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Set initial status for tests
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: test
sha: ${{ github.event.workflow_run.head_sha }}
status: in_progress
- name: Set initial status for tests
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: coverage/coveralls
sha: ${{ github.event.workflow_run.head_sha }}
status: in_progress
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
Expand All @@ -25,13 +39,13 @@ jobs:
node-version: 20
cache: 'pnpm'
- name: Install
run: pnpm install
run: pnpm install --ignore-scripts
- name: Download bundle from artifact
uses: actions/download-artifact@v4
with:
name: pr-bundle
run-id: ${{ github.event.workflow_run.id }}
path: ${{ github.workspace }}/.hass/config/www/
path: ${{ github.workspace }}
github-token: ${{ github.token }}
- name: E2E tests
id: tests
Expand All @@ -45,9 +59,9 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-branch: ${{ github.event.workflow_run.head_branch }}
git-commit: ${{ github.event.workflow_run.head_sha }}
debug: true
#git-branch: ${{ github.event.workflow_run.head_branch }}
#git-commit: ${{ github.event.workflow_run.head_sha }}
#debug: true
- uses: actions/upload-artifact@v3
if: always()
with:
Expand All @@ -58,9 +72,11 @@ jobs:
retention-days: 30
- name: Set final status for tests
uses: LouisBrunner/[email protected]
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: test
check_id: test
sha: ${{ github.event.workflow_run.head_sha }}
status: completed
conclusion: ${{ job.status }}

0 comments on commit e1746ac

Please sign in to comment.