Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
skjolber committed Apr 12, 2024
1 parent 81d6506 commit 35b6fc2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 13 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: CI

on:
push:
branches: [ '**' ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [17]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: gradle
- name: Build with Gradle
run: ./gradlew build --info
owasp-dependency-check:
runs-on: ubuntu-latest
name: OWASP dependency check
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: gradle
- name: Build with Gradle
run: ./gradlew dependencyCheckAnalyze --info

25 changes: 12 additions & 13 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Run build on PRs
on: pull_request
jobs:
gradle:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [17]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: ./gradlew build

java-version: ${{ matrix.java }}
cache: gradle
- name: Build with Gradle
run: ./gradlew build --info
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![Build Status](https://github.com/entur/cloud-logging/actions/workflows/gradle.yml/badge.svg)
[![Maven Central](https://img.shields.io/maven-central/v/no.entur.logging.cloud/api.svg)](https://mvnrepository.com/artifact/no.entur.logging.cloud)

# cloud-logging
Logging libraries for JVM applications. Goals

Expand Down

0 comments on commit 35b6fc2

Please sign in to comment.