Skip to content

Commit

Permalink
CI: build the client
Browse files Browse the repository at this point in the history
  • Loading branch information
programLyrique committed Jan 15, 2025
1 parent 73fc7cf commit 42c5f5a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/[email protected]
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

0 comments on commit 42c5f5a

Please sign in to comment.