Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FKD13 committed Mar 25, 2024
1 parent b107fdb commit 8ba54fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,24 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 16
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
java-version: 17

- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube --info

- name: Build
run: ./gradlew build

- name: Build
run: ./gradlew test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package telraam.logic;
package telraam.logic.simple;

import org.jdbi.v3.core.Jdbi;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -8,6 +8,7 @@
import telraam.database.models.Detection;
import telraam.database.models.Lap;
import telraam.database.models.LapSource;
import telraam.logic.Lapper;
import telraam.logic.simple.SimpleLapper;

import java.sql.Timestamp;
Expand Down

0 comments on commit 8ba54fd

Please sign in to comment.