Skip to content

Commit b21ba21

Browse files
committed
Added workflows
1 parent 3b2e3c6 commit b21ba21

File tree

2 files changed

+151
-0
lines changed

2 files changed

+151
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# CI maven compatibility check
2+
#
3+
# version 1.0.0
4+
#
5+
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_compatibility.html
6+
7+
name: CI maven compatibility check
8+
9+
on:
10+
# Trigger analysis when pushing in master or pull requests, and when creating
11+
# a pull request.
12+
push:
13+
branches:
14+
- branch-compatibility
15+
16+
jobs:
17+
check-main:
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
distribution: [ 'corretto' ]
22+
java: [ '11', '17', '21' ]
23+
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
24+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
25+
steps:
26+
- uses: actions/checkout@main
27+
- name: Setup java
28+
uses: actions/setup-java@main
29+
with:
30+
distribution: ${{ matrix.distribution }}
31+
java-version: ${{ matrix.java }}
32+
- name: Maven build
33+
run: mvn clean install -P full,coverage
34+
check-alt:
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
distribution: [ 'oracle', 'temurin' ]
39+
java: [ '17' ]
40+
os: [ 'ubuntu-latest' ]
41+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
42+
steps:
43+
- uses: actions/checkout@main
44+
- name: Setup java
45+
uses: actions/setup-java@main
46+
with:
47+
distribution: ${{ matrix.distribution }}
48+
java-version: ${{ matrix.java }}
49+
- name: Maven build
50+
run: mvn clean install -P full,coverage
51+
check-ms:
52+
runs-on: ${{ matrix.os }}
53+
strategy:
54+
matrix:
55+
distribution: [ 'microsoft' ]
56+
java: [ '17' ]
57+
os: [ 'windows-latest' ]
58+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
59+
steps:
60+
- uses: actions/checkout@main
61+
- name: Setup java
62+
uses: actions/setup-java@main
63+
with:
64+
distribution: ${{ matrix.distribution }}
65+
java-version: ${{ matrix.java }}
66+
- name: Maven build
67+
run: mvn clean install -P full,coverage
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# CodeQL
2+
#
3+
# version 1.0.0
4+
#
5+
# see : https://universe.fugerit.org/src/docs/conventions/workflows/codeql-analysis.html
6+
7+
# For most projects, this workflow file will not need changing; you simply need
8+
# to commit it to your repository.
9+
#
10+
# You may wish to alter this file to override the set of languages analyzed,
11+
# or to provide custom queries or build logic.
12+
13+
name: "CodeQL"
14+
15+
on:
16+
push:
17+
branches: [ "main" ]
18+
pull_request:
19+
# The branches below must be a subset of the branches above
20+
branches: [ "main" ]
21+
schedule:
22+
- cron: '29 3 * * 4'
23+
24+
jobs:
25+
analyze:
26+
name: Analyze
27+
runs-on: ubuntu-latest
28+
permissions:
29+
actions: read
30+
contents: read
31+
security-events: write
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
language: [ 'java', 'javascript' ]
37+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
38+
# Use only 'java' to analyze code written in Java, Kotlin or both
39+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
40+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@main
45+
46+
- name: Set up JDK 17
47+
uses: actions/setup-java@main
48+
with:
49+
java-version: '17'
50+
distribution: 'corretto'
51+
cache: 'maven'
52+
53+
# Initializes the CodeQL tools for scanning.
54+
- name: Initialize CodeQL
55+
uses: github/codeql-action/init@main
56+
with:
57+
languages: ${{ matrix.language }}
58+
# If you wish to specify custom queries, you can do so here or in a config file.
59+
# By default, queries listed here will override any specified in a config file.
60+
# Prefix the list here with "+" to use these queries and those in the config file.
61+
62+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
63+
# queries: security-extended,security-and-quality
64+
65+
66+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
67+
# If this step fails, then you should remove it and run the build manually (see below)
68+
- name: Autobuild
69+
uses: github/codeql-action/autobuild@main
70+
71+
# ℹ️ Command-line programs to run using the OS shell.
72+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73+
74+
# If the Autobuild fails above, remove it and uncomment the following three lines.
75+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
76+
77+
# - run: |
78+
# echo "Run, Build Application using script"
79+
# ./location_of_script_within_repo/buildscript.sh
80+
81+
- name: Perform CodeQL Analysis
82+
uses: github/codeql-action/analyze@main
83+
with:
84+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)