diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd04a42..73d181f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,8 +111,12 @@ jobs: workspace=$(jq -r '.name' packages/${{ matrix.dir }}/package.json) yarn workspace "$workspace" run test:coverage - - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - name: Coveralls + coveralls: + runs-on: ubuntu-latest + if: needs.changed-files.outputs.any_changed == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' + needs: [changed-files, tests] + steps: + - name: Coveralls uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }}