diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e16a5f1..240258c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: Build on: push: + branches: + - '**' pull_request: branches: - main @@ -11,24 +13,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 1.8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 8 + cache: 'maven' - name: Set up Aerospike Database uses: reugn/github-action-aerospike@v1 - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - name: Build with Maven run: mvn clean package -B -U \ No newline at end of file diff --git a/.github/workflows/snyk-scan.yml b/.github/workflows/snyk-scan.yml index c95730f..e3e88d3 100644 --- a/.github/workflows/snyk-scan.yml +++ b/.github/workflows/snyk-scan.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Snyk to check for vulnerabilities uses: snyk/actions/maven@master