-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Skaar, Bjørn-Andre
committed
Dec 14, 2023
1 parent
fd4f424
commit ca40be6
Showing
2 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Tests | ||
run-name: "Build, tests and package" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ 'ubuntu-latest', 'macos-latest' ] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- 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 | ||
|
||
- name: Build, test and package with Maven | ||
run: mvn --batch-mode --update-snapshots package -P nexus | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,6 @@ jobs: | |
java-version: '17' | ||
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 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 -P nexus | ||
run: mvn --batch-mode --update-snapshots package -pl '!:klass-forvaltning' -P nexus |