Skip to content

Commit

Permalink
Create gh actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jlahtinen committed Jan 16, 2024
1 parent d539f87 commit 2ebc337
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: decrypt licenses
run: secret_licenses/decrypt_licenses.sh
env:
LICENSE_PASSWORD: ${{secrets.LICENSE_PASSWORD}}
- name: Build with Maven
run: mvn -B package

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,19 @@


</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<includes>
<!-- By default only files ending in 'Test' will be included, so also include support for Spock style naming convention -->
<!-- Oddly enough for Groovy files, *Spec.groovy does not work, but *Spec.java does -->
<include>**/*Test.java</include>
<include>**/*Spec.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
14 changes: 14 additions & 0 deletions secret_licenses/decrypt_licenses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

DIR="$( cd "$( dirname "$0" )" && pwd )"


mkdir -p $HOME/.licenses/jira
# --batch to prevent interactive command
# --yes to assume "yes" for questions
gpg --quiet --batch --yes --decrypt --passphrase="$LICENSE_PASSWORD" \
--output $HOME/.licenses/jira/jsm.license $DIR/jsm.license.gpg
gpg --quiet --batch --yes --decrypt --passphrase="$LICENSE_PASSWORD" \
--output $HOME/.licenses/jira/sr.license $DIR/sr.license.gpg
Binary file added secret_licenses/jsm.license.gpg
Binary file not shown.
4 changes: 4 additions & 0 deletions secret_licenses/sr.license.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
� ⻵�ya�E�����
b�&*��!�w�G�9�K��͊�I����g�W������+��'��lh��� I����;M1�-s4�M���5��_������#��5���w��@]b� �puW虸$������ ���4���=���o���F��sJ<˼�7f��R�*L>�ǀ����k�5%�/��8wgE�B�|R5ܲ�8C�*�k��ę}&w�����������YΉr�Dᬪ�
�HT����+?�%'���*�H��g�Cqki'^�.��{�?�[C�FXz� C�����4�T�=��S@�������?�+�M��Ĺ\ 8m���|yT^�jT9ae�tR�����b�h��e��(���R���� �C��=�d� �A�F�iW��D�Q��9�K�D�o�3�����WB�٣d��5���]������j9�u_xRj̴���3N���_o�������xd`����I�dRX��'u�CX�T�d�~BB�٣����n���fr�B2�� ��qW���;��/ ���0n��|
�bV�5�� n��-S~~�*r�bְih��\hO>�B#R,;�r���H�z�1����nʟ�xIU�
Expand Down

0 comments on commit 2ebc337

Please sign in to comment.