Skip to content

Commit

Permalink
Use incremental builds on GitHub actions
Browse files Browse the repository at this point in the history
Co-Authored-By: marko-bekhta <marko.prykladna@gmail.com>
  • Loading branch information
yrodiere and marko-bekhta committed Sep 19, 2023
1 parent 01068ee commit ec01e44
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- '!3.*'
- '!4.*'
- '!5.*'
- '!6.*'
- '!dependabot/**'
- '**'
tags:
Expand All @@ -24,6 +25,7 @@ on:
- '!3.*'
- '!4.*'
- '!5.*'
- '!6.*'
# Ignore dependabot PRs that are not just about build dependencies;
# we'll reject such dependant PRs and send a PR ourselves.
- 'dependabot/maven/build-dependencies-**'
Expand Down Expand Up @@ -63,6 +65,10 @@ jobs:
if: "startsWith(matrix.os.runs-on, 'windows')"
run: git config --global core.longpaths true
- uses: actions/checkout@v4
with:
# Fetch the whole history to make sure that gitflow incremental builder
# can find the base commit.
fetch-depth: 0
- name: Set up Java ${{ matrix.os.java.version }}
uses: actions/setup-java@v1
with:
Expand All @@ -79,8 +85,13 @@ jobs:
run: ./mvnw -v
- name: Docker cleanup
run: ./ci/docker-cleanup.sh
- name: Build and test
run: ./mvnw $MAVEN_ARGS install -Pjqassistant -Pdist -Pci-sources-check
- name: Building code and running unit tests and basic checks
run: ./mvnw $MAVEN_ARGS install -Pjqassistant -Pdist -Pci-sources-check -DskipITs
- name: Running integration tests in the default environment
run: |
./mvnw $MAVEN_ARGS verify \
-DskipSurefireTests -Pskip-checks -Pci-rebuild \
${{ github.event.pull_request.base.ref && format('-Dincremental -Dgib.referenceBranch=refs/remotes/origin/{0}', github.event.pull_request.base.ref) || '' }}
- name: Docker cleanup
if: always()
run: ./ci/docker-cleanup.sh
Expand Down

0 comments on commit ec01e44

Please sign in to comment.