From be29ccc0c631bdb7bbf175c22f5fbe9b0f157102 Mon Sep 17 00:00:00 2001 From: Pierre Donat-Bouillud Date: Tue, 14 Jan 2025 13:20:33 -0500 Subject: [PATCH] Try to make the image cache work --- .github/workflows/devcontainer.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index 4c69c1f2..95f8f7f8 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -53,9 +53,10 @@ jobs: # See https://github.com/devcontainers/ci/blob/main/docs/github-action.md - - name: Build and run dev container task + - name: Run tests in the dev container task uses: devcontainers/ci@v0.3 with: + imageName: ${{ needs.build-devcontainer.outputs.imageName }} cacheFrom: ${{ needs.build-devcontainer.outputs.imageName }} # Change this to be your CI task/script runCmd: cd server; mvn --batch-mode --update-snapshots test @@ -76,8 +77,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and run dev container task + - name: Run linters in the container task uses: devcontainers/ci@v0.3 with: + imageName: ${{ needs.build-devcontainer.outputs.imageName }} cacheFrom: ${{ needs.build-devcontainer.outputs.imageName }} runCmd: cd server; mvn --batch-mode --update-snapshots verify