Skip to content

Commit

Permalink
Add CI job to test the code before build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufaddal5253110 committed Jul 24, 2024
1 parent 6620442 commit fcbc765
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fcbc765

Please sign in to comment.