initializes testing
All checks were successful
CI / deploy (push) Successful in 4m44s
CI / deploy (pull_request) Successful in 6m28s

This commit is contained in:
Arindy
2024-10-23 00:21:34 +02:00
parent 948109cd96
commit ad751e6c72
4 changed files with 97 additions and 9 deletions

View File

@@ -1,11 +1,13 @@
name: CI
on: [ push ]
on: [ push, pull_request ]
jobs:
deploy:
env:
REPO: ${{ github.event.repository.name }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
@@ -14,13 +16,25 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
java-version: '17'
- name: Build Runner
run: ./mvnw --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.7.1
with:
paths: ${{ github.workspace }}/**/target/coverage/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: ${{ env.REPO }} Coverage
- name: Build Container
if: github.ref_name == 'main'
run: docker build -f src/main/docker/Dockerfile.native-micro -t ${{ env.REPO }} .
- name: Deploy
if: github.ref_name == 'main'
run: "docker compose up -d"