diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd0abc226f1..1617e84c280 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,26 @@ jobs: VALIDATE_GOOGLE_JAVA_FORMAT: true # To report GitHub Actions status checks GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + test: + name: Run Test + runs-on: ubuntu-latest + # needs: [lint_and_check] + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: 17 + + - name: Cache the Maven packages to speed up build + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build project with Maven + run: mvn -B package --file pom.xml