Skip to content

adds circle ci build #475

adds circle ci build

adds circle ci build #475

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
name: Build on Java ${{ matrix.Java }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v3.11.0
with:
java-version: ${{ matrix.Java }}
distribution: 'zulu'
cache: 'gradle'
- name: Cache SonarCloud packages
uses: actions/cache@v3.3.1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew clean bootBuildImage sonarqube --info
- name: Codecov
uses: codecov/codecov-action@v3.1.3