.github/workflows: Pass COVERALLS_REPO_TOKEN to coveralls task (#9935)

The coveralls task has been silently failing since we migrated to GitHub
Actions, away form Travis-CI:
```
no COVERALLS_REPO_TOKEN environmental variable found

no available CI service
> Task :grpc-all:coveralls

BUILD SUCCESSFUL in 23s
7 actionable tasks: 1 executed, 6 up-to-date
```

We'd rather not deal with private tokens, but the Coveralls GitHub
Action [only supports lcov][1] which makes it unhelpful for Java.
Looking deeper, yep, we [aren't the only ones impacted][2]:

[1]: https://github.com/marketplace/actions/coveralls-github-action
[2]: https://github.com/coverallsapp/github-action/issues/22
This commit is contained in:
Eric Anderson 2023-03-24 12:51:14 -07:00 committed by GitHub
parent 85e656c0dc
commit db433ae372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ jobs:
- name: Coveralls - name: Coveralls
if: matrix.jre == 8 # Upload once, instead of for each job in the matrix if: matrix.jre == 8 # Upload once, instead of for each job in the matrix
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./gradlew :grpc-all:coveralls -PskipAndroid=true -x compileJava run: ./gradlew :grpc-all:coveralls -PskipAndroid=true -x compileJava
- name: Codecov - name: Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3