Skip to content

Bump codecov/codecov-action from 4.5.0 to 5.1.1 #184

Bump codecov/codecov-action from 4.5.0 to 5.1.1

Bump codecov/codecov-action from 4.5.0 to 5.1.1 #184

Workflow file for this run

# Copyright (c) 2008, SnakeYAML
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: verify
on:
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jdk: [ '8', '11' ]
include:
- jdk: '8'
profile: -Pwith-java8-tests
- jdk: '11'
profile: -Pwith-java11-tests
name: jdk ${{ matrix.jdk }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: 'maven'
- name: Build with Maven
run: mvn -V -B ${{ matrix.profile }} verify --file pom.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}