Update test.yml

This commit is contained in:
Anthony Stirling 2024-01-01 20:07:37 +00:00 committed by GitHub
parent f3742ebeb6
commit b1f80bc9f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,11 +25,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Run Docker Compose Tests
run: |
chmod +x ./gradlew
- name: Get version number
id: versionNumber
run: echo "::set-output name=versionNumber::$(./gradlew printVersion --quiet | tail -1)"
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
key: ${{ runner.os }}-buildx-${{ steps.versionNumber.outputs.versionNumber }}
restore-keys: |
${{ runner.os }}-buildx-
@ -41,6 +50,5 @@ jobs:
- name: Run Docker Compose Tests
run: |
chmod +x ./gradlew
chmod +x ./test.sh
./test.sh