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

Merge pull request #630 from FortnoxAB/dependabot/maven/org.apache.ma… #970

Merge pull request #630 from FortnoxAB/dependabot/maven/org.apache.ma…

Merge pull request #630 from FortnoxAB/dependabot/maven/org.apache.ma… #970

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: 'Download latest JDK 17'
run: |
wget \
--no-verbose \
--directory-prefix $RUNNER_TEMP \
https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
java-version: 17
distribution: jdkfile
jdkFile: ${{ runner.temp }}/jdk-17_linux-x64_bin.tar.gz
- name: Build with Maven
run: mvn install sonar:sonar -Dsonar.organization=fortnoxab -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}