Skip to content

Commit

Permalink
update test job to remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufaddal5253110 committed Jul 24, 2024
1 parent 8e8b04b commit c38dbdb
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
- name: Lint Code Base
uses: super-linter/super-linter@v6.7.0
env:
# VALIDATE_JAVA: true
VALIDATE_JAVA: true
VALIDATE_GOOGLE_JAVA_FORMAT: true
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

test:
name: Run Test
name: Test - Units & Integrations
runs-on: ubuntu-latest
# needs: [lint_and_check]

Expand All @@ -45,14 +45,10 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
distribution: "adopt"

- 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: Maven Package
run: mvn -B clean package --file pom.xml -DskipTests

- name: Build project with Maven
run: mvn -B package --file pom.xml
- name: Maven Verify
run: mvn -B clean verify

0 comments on commit c38dbdb

Please sign in to comment.