diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index 272ac63a..19a48d19 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -51,6 +51,13 @@ jobs: runCmd: cd server ; mvn --batch-mode --update-snapshots -DskipTests package - run: mkdir staging && cp target/*.jar staging working-directory: server + - name: Cache local Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Upload snapshot as artifact uses: actions/upload-artifact@v4 with: @@ -110,3 +117,18 @@ jobs: cacheFrom: ${{ needs.build-devcontainer.outputs.imageName }} push: never runCmd: cd server; mvn --batch-mode --update-snapshots verify + + test-client: + runs-on: ubuntu-latest + needs: artifact + steps: + - uses: actions/checkout@v3 + - name: build client + uses: devcontainers/ci@v0.3 + with: + imageName: ${{ needs.build-devcontainer.outputs.imageName }} + cacheFrom: ${{ needs.build-devcontainer.outputs.imageName }} + push: never + runCmd: cd client; make build + #TODO: start the server + #TODO: run the client tests \ No newline at end of file