Skip to content

Update README.md

Update README.md #14

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: ptcoretest
POSTGRES_USER: ptcoretest
POSTGRES_PASSWORD: ptCoreTest101
ports:
- 5432:5432
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: d16fc939fed96c332c7414ad93947e37ed44f1cc
run: mvn -T 1C -B clean package jacoco:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.organization=javadev-github -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=javadev_pt-backend
- uses: codecov/codecov-action@v3
with:
file: target/site/jacoco/jacoco.xml
name: codecov