Skip to content

ci: Specify token for codecov-action-action step. #162

ci: Specify token for codecov-action-action step.

ci: Specify token for codecov-action-action step. #162

Workflow file for this run

name: Build
permissions:
checks: write
pull-requests: write
on:
push:
branches:
- master
- 3.x
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Build
strategy:
matrix:
java-version: [ 8, 11, 17, 21, 23 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'gradle'
- name: Build
run: ./gradlew build
- uses: codecov/codecov-action@v5
if: matrix.java-version == 8
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}