Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Merge pull request #791 from cookenox/master #1342

Merge pull request #791 from cookenox/master

Merge pull request #791 from cookenox/master #1342

Workflow file for this run

# 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: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'corretto'
cache: 'maven'
- name: Build with Maven
run: mvn install sonar:sonar -Dsonar.organization=fortnoxab -Dsonar.login=$SONAR_TOKEN --batch-mode
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}