Skip to content

V2 - First template #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Apr 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "GitHub Actions"
include: "scope"
# Maintain dependencies for pom.xml
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "Maven pom.xml"
include: "scope"
58 changes: 9 additions & 49 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,29 @@ name: CI

on:
push:
branches-ignore:
- "dependabot/**"
paths-ignore:
- 'README.md'
pull_request:
types: [assigned, opened, synchronize, reopened, ready_for_review, edited]
paths-ignore:
- 'README.md'
schedule:
- cron: '0 0 * * *'

jobs:
env:
CI: true

jobs:
linux-jvm-tests:
name: JDK ${{matrix.java-version}} JVM Tests
timeout-minutes: 120
strategy:
matrix:
java-version: [8, 11, 15]

java-version: [ 11, 17 ]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}
- name: Build with Maven
run: mvn install
- name: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czvf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-linux-jvm${{matrix.java-version}}
path: 'test-reports.tgz'

code-scan:
name: Code Scan
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'project-openubl' }}
timeout-minutes: 120
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven and Coverage/Sonar
run: mvn verify -P coverage,sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Codecov metrics
uses: codecov/codecov-action@v1
- name: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czvf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-linux-jvm-codescan
path: 'test-reports.tgz'
run: mvn verify
20 changes: 20 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
schedule:
- cron: '0 0 * * *'
env:
CI: true

jobs:
linux-jvm-tests:
name: JDK ${{matrix.java-version}} JVM Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}
- name: Build with Maven
run: mvn verify
28 changes: 28 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Master branch

on:
push:
branches:
- master

env:
CI: true

jobs:
code-scan:
name: Code Scan
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'project-openubl' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 8
- name: Build with Maven and Coverage/Sonar
run: mvn verify -P coverage,sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Codecov metrics
uses: codecov/codecov-action@v1
19 changes: 0 additions & 19 deletions .github/workflows/stale.yml

This file was deleted.

Loading