Skip to content

Commit

Permalink
upgrade GA actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tokarls committed May 14, 2024
1 parent 9c8a444 commit 00ef2d7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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') }}
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-vulnerability-alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-audit-alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00ef2d7

Please sign in to comment.