Skip to content

Commit

Permalink
Lisätty build-actioni
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorri committed Jan 4, 2024
1 parent f2b35c9 commit 10c508e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Viestinvalityspalvelu

on:
workflow_dispatch:
push:
paths-ignore:
- '**.md'

jobs:
test-and-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Helsinki"

- name: Build with Maven
env:
GITHUB_TOKEN: ${{ github.token }}
run: mvn clean verify -B -Dbranch=${GITHUB_REF_NAME} -Drevision=${GITHUB_SHA} -DbuildNumber=${GITHUB_RUN_NUMBER}

0 comments on commit 10c508e

Please sign in to comment.