From ab457b884cd85124596812576976dce03c0f9283 Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 23 Sep 2023 23:16:42 -0300 Subject: [PATCH] ci improvements --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed5bb40..fc90e15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,28 +1,38 @@ name: Test all the things -on: [push, pull_request] +on: [ push, pull_request ] jobs: + build-agent: + runs-on: ubuntu-latest + name: Build agent with Java 8 + strategy: + matrix: + java: [ 8 ] + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: 8 + distribution: 'zulu' + - name: Build agent with Java 8 + run: ./gradlew wrapper --gradle-version=8.4-rc-1 :agent:publishToMavenLocal + ci: runs-on: ubuntu-latest - name: Java ${{ matrix.java }} + needs: build-agent + name: Test with different Java versions strategy: matrix: - java: [ 8, 11, 17, 21] - fail-fast: false + java: [ 8, 11, 17, 21 ] steps: - uses: actions/checkout@v3 - name: Set up JDK ${{ matrix.java }} - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - - uses: actions/setup-java@v3 + uses: actions/setup-java@v2 with: - distribution: 'zulu' java-version: ${{ matrix.java }} - cache: 'gradle' + distribution: 'zulu' - name: Test - run: ./gradlew wrapper --gradle-version=8.4-rc-1 :agent:publishToMavenLocal && ./gradlew wrapper --gradle-version=8.4-rc-1 assemble && ./travis-test.sh \ No newline at end of file + run: | + ./travis-test.sh \ No newline at end of file