Fix Windows build
* Fix paths for all OS * Tweak build file * Provide correct class to logger * Download dependencies before comparing parse reults When local Maven repo is empty the Markers added by the RewriteMavenProjectParser (comparing) and the RewriteProjectParser (under test) differ. This is because one downloads the dependencies and the next takes them form local Maven and the URIs for dependencies then differ. By builing the projects with Maven first the dependencies will be available in local Maven repo and taken from there by both parsers. * Add logging * fix formatting * Ignore test when using Windows
This commit is contained in:
26
.github/workflows/continuous-integration.yml
vendored
26
.github/workflows/continuous-integration.yml
vendored
@@ -3,8 +3,6 @@ name: CI
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.github/**'
|
||||
|
||||
@@ -27,14 +25,28 @@ jobs:
|
||||
java: 17
|
||||
name: CI Build ${{ matrix.nickname }}
|
||||
steps:
|
||||
- name: Set git config for long paths
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
git config --system core.longpaths true
|
||||
- uses: actions/checkout@v4
|
||||
- uses: jvalkeal/setup-maven@v1
|
||||
with:
|
||||
maven-version: 3.6.3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: liberica
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Build
|
||||
- name: Setup docker (missing on MacOS)
|
||||
if: runner.os == 'macos'
|
||||
run: |
|
||||
brew install docker
|
||||
colima start
|
||||
|
||||
# For testcontainers to find the Colima socket
|
||||
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
|
||||
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
|
||||
- name: Verify formatting
|
||||
run: mvn -B -Pfunctional-tests spring-javaformat:validate
|
||||
- name: Build (Windows, no functional tests)
|
||||
if: runner.os == 'Windows'
|
||||
run: ./mvnw -B clean verify
|
||||
- name: Build (Non Windows)
|
||||
if: runner.os != 'Windows'
|
||||
run: ./mvnw -B -Pfunctional-tests clean verify
|
||||
Reference in New Issue
Block a user