diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1e9b22e..6b1dd66e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,8 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 + uses: gradle/actions/wrapper-validation@v3 + - uses: gradle/actions/setup-gradle@v3 - name: Push to registry ${{ matrix.publish_target }} run: | set -xev @@ -67,12 +68,10 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 + uses: gradle/actions/wrapper-validation@v3 + - uses: gradle/actions/setup-gradle@v3 - name: Build the dependencies needed for the image - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - :fabric-chaincode-docker:copyAllDeps + run: ./gradlew :fabric-chaincode-docker:copyAllDeps - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1357bf02..d4901013 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,12 +24,10 @@ jobs: distribution: 'temurin' java-version: '11' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 + uses: gradle/actions/wrapper-validation@v3 + - uses: gradle/actions/setup-gradle@v3 - name: Build and Unit test - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - :fabric-chaincode-shim:build + run: ./gradlew :fabric-chaincode-shim:build intergationtest: runs-on: ubuntu-latest @@ -60,11 +58,9 @@ jobs: run: | peer version weft --version + - uses: gradle/actions/setup-gradle@v3 - name: Integration Tests - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - :fabric-chaincode-integration-test:build + run: ./gradlew :fabric-chaincode-integration-test:build docker: runs-on: ubuntu-latest @@ -76,8 +72,6 @@ jobs: with: distribution: 'temurin' java-version: '11' + - uses: gradle/actions/setup-gradle@v3 - name: Build Docker image - uses: gradle/actions/setup-gradle@v3 - with: - arguments: | - :fabric-chaincode-docker:buildImage + run: ./gradlew :fabric-chaincode-docker:buildImage