From e1746aca56d0ed3301b4982eb38156e53924fd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Tue, 26 Nov 2024 00:33:31 +0100 Subject: [PATCH] Remove git-branch and git-commit from coveralls --- .github/workflows/pull-request-received.yaml | 3 ++- .github/workflows/test-pr.yaml | 26 ++++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request-received.yaml b/.github/workflows/pull-request-received.yaml index 3d5a4dc..236a4fb 100644 --- a/.github/workflows/pull-request-received.yaml +++ b/.github/workflows/pull-request-received.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 4c75659..e7621b1 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -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/checks-action@v2.0.0 + 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/checks-action@v2.0.0 + 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 @@ -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 @@ -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: @@ -58,9 +72,11 @@ jobs: retention-days: 30 - name: Set final status for tests uses: LouisBrunner/checks-action@v2.0.0 + if: always() with: token: ${{ secrets.GITHUB_TOKEN }} name: test + check_id: test sha: ${{ github.event.workflow_run.head_sha }} status: completed conclusion: ${{ job.status }} \ No newline at end of file