Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Dec 14, 2023
1 parent 23aff36 commit f6311e8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 41 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/tests-klass-forvaltning.yml

This file was deleted.

25 changes: 23 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build (Java 17)
name: Build
run-name: "Build, tests and package"

on:
Expand Down Expand Up @@ -27,4 +27,25 @@ jobs:

# Build all modules except klass-forvaltning since it is not compatible with JDK 17
- name: Build, test and package with Maven
run: mvn --batch-mode --update-snapshots package -pl '!:klass-forvaltning' -P nexus
run: mvn --batch-mode --update-snapshots package -pl '!:klass-forvaltning' -P nexus

- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
cache: maven

# Need to downgrade Maven in order to allow HTTP (not HTTPS) packages to be downloaded.
# This is necessary as HTTP repositories were blocked in Maven 3.8.1
# HTTP repositories are used in some outdated dependenciesns
# This step can be removed once KLASS packages have been updated to more recent versions
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.6.3

# Build only klass-forvaltning with JDK 1.8
- name: Build, test and package with Maven
run: mvn --batch-mode --update-snapshots package -pl :klass-forvaltning -P nexus

0 comments on commit f6311e8

Please sign in to comment.