Skip to content

Commit

Permalink
Merge pull request #1 from slovensko-digital/add-gh-actions
Browse files Browse the repository at this point in the history
add gh actions
  • Loading branch information
celuchmarek authored Nov 13, 2024
2 parents 1485962 + bd8c41c commit 33dd0a1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Only authorized users can change workflows and packaging
.github @slovensko-digital/autogram-release-team
/pom.xml @slovensko-digital/autogram-release-team
/src/main/resources/digital/slovensko/autogram/core/validation/lotlKeyStore.p12 @slovensko-digital/autogram-release-team
58 changes: 58 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Tests

on:
push:
branches:
- 'main'
pull_request:

jobs:
test:
runs-on: ${{ matrix.config.os }}

permissions:
checks: write

strategy:
matrix:
config:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Run tests
run: mvn test -P system-jdk

# TODO: make this work
# - name: JaCoCo Code Coverage Report
# id: jacoco_report
# uses: PavanMudigonda/jacoco-reporter@ffe0b95c14292be4d076e56d50ba6c3b94c43a77
# with:
# coverage_results_path: ${{ github.workspace }}/target/site/jacoco/jacoco.xml
# coverage_report_name: Coverage
# coverage_report_title: JaCoCo
# github_token: ${{ secrets.GITHUB_TOKEN }}
# skip_check_run: true
# minimum_coverage: 80
# fail_below_threshold: false # set to true for Github CI build failing when coverage check do not pass
# publish_only_summary: false
#
# - name: Add Coverage Job Summary
# run: echo "${{ steps.jacoco_report.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY
#
# - name: Upload Code Coverage Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: code-coverage-report-markdown
# path: ./*/coverage-results.md
# retention-days: 1

0 comments on commit 33dd0a1

Please sign in to comment.