diff --git a/.github/workflows/build-service.yml b/.github/workflows/build-service.yml index 9a892a9..d26cbdf 100644 --- a/.github/workflows/build-service.yml +++ b/.github/workflows/build-service.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: "18.x" cache: "npm" @@ -22,7 +22,7 @@ jobs: run: npm run build working-directory: rekisterointi-ui - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "21" distribution: "corretto" @@ -32,30 +32,30 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn clean package -B -Dbranch=$GITHUB_REF_NAME -Drevision=$GITHUB_SHA -DbuildNumber=$GITHUB_RUN_NUMBER/$GITHUB_RUN_ATTEMPT - name: Upload rekisterointi-jar - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rekisterointi-jar path: target/rekisterointi.jar sonarcloud: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "21" distribution: "corretto" cache: "maven" - name: Cache SonarCloud packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -69,18 +69,18 @@ jobs: needs: [build] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download rekisterointi-jar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: rekisterointi-jar - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "18.x" cache: "npm" cache-dependency-path: rekisterointi-ui/package-lock.json - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "21" distribution: "corretto" @@ -101,7 +101,7 @@ jobs: cd ../rekisterointi-ui ./scripts/ci-wait-for-frontend.sh HEADLESS=true npm run playwright:test - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: playwright-results @@ -112,9 +112,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download rekisterointi-jar - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: rekisterointi-jar - name: Build Docker Conainer diff --git a/.github/workflows/dependabot-vulnerability-alert.yml b/.github/workflows/dependabot-vulnerability-alert.yml index 2d58593..e425ca9 100644 --- a/.github/workflows/dependabot-vulnerability-alert.yml +++ b/.github/workflows/dependabot-vulnerability-alert.yml @@ -8,7 +8,7 @@ jobs: create-alert: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "master" - name: Send Slack alert if PR created by dependabot diff --git a/.github/workflows/npm-audit-alert.yml b/.github/workflows/npm-audit-alert.yml index dacba17..ed16580 100644 --- a/.github/workflows/npm-audit-alert.yml +++ b/.github/workflows/npm-audit-alert.yml @@ -14,7 +14,7 @@ jobs: npm-audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "master" - name: Install deps