Reorder binary compatibility steps
@@ -12,16 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
- - name: (PR only) Checkout `${{ github.base_ref }}` into subfolder
- if: github.base_ref != null
- uses: actions/checkout@v2
- with:
- ref: ${{ github.base_ref }}
- path: assertj-core.${{ github.base_ref }}
-
- - name: Setup Java
- uses: actions/setup-java@v2
+ - uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
@@ -34,6 +25,12 @@ jobs:
-DskipTests
-Djapicmp.breakBuildOnBinaryIncompatibleModifications=true
+ - name: (PR only) Checkout `${{ github.base_ref }}` into subfolder
+ if: github.base_ref != null
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.base_ref }}
+ path: assertj-core.${{ github.base_ref }}
- name: (PR only) Build `${{ github.base_ref }}`
if: github.base_ref != null
run: ./mvnw -V --no-transfer-progress -e -f assertj-core.${{ github.base_ref }}/pom.xml package -DskipTests
