Skip to content

Merge branch 'main' of https://github.com/j256/simplecsv #3

Merge branch 'main' of https://github.com/j256/simplecsv

Merge branch 'main' of https://github.com/j256/simplecsv #3

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
cache: maven
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Generate coverage report using jacoco
run: mvn -B jacoco:report
- name: Upload coverage report to CodeCov
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Test checks publishing to github
run: mvn -X com.j256.testcheckpublisher:test-check-publisher-maven-plugin:publish
env:
TEST_CHECK_PUBLISHER_SECRET: ${{ secrets.TEST_CHECK_PUBLISHER_SECRET }}