update required properties to 2023 version of ubuntu for openstack and ec2 #951
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# 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: '**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
cache: maven | |
distribution: temurin | |
- name: Build with Maven | |
run: mvn -B -DskipTests clean package --file pom.xml --fail-at-end | |
- name: Run codacy-coverage-reporter | |
if: ${{ github.repository_owner == 'OpenTOSCA' }} | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: org.opentosca.container.reporting/target/site/jacoco-aggregate/jacoco.xml |