From 9b2b3347308fe3efab58e81e00f946025114ec34 Mon Sep 17 00:00:00 2001 From: yrizhkov Date: Thu, 21 Dec 2023 10:15:50 +0200 Subject: [PATCH] FMWK-295 Update versions in GitHub Actions workflows --- .github/workflows/build.yml | 15 +++++---------- .github/workflows/snyk-scan.yml | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) 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