Skip to content

OK-735: Vaihdetaan Github actions cache v2 -> v4 #14

OK-735: Vaihdetaan Github actions cache v2 -> v4

OK-735: Vaihdetaan Github actions cache v2 -> v4 #14

Workflow file for this run

name: Ovara build workflow
on:
workflow_dispatch:
push:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'corretto'
cache: 'maven'
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Helsinki"
- name: Build with Maven
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ovara-backend
mvn clean package -B -DskipTests