Skip to content

validate_ubuntu

validate_ubuntu #5

name: validate_ubuntu
on:
workflow_call:
workflow_dispatch:
# The following jobs are equal for all IGs and can be moved to a common composite-action if 'uses'-support is added, see:
# https://github.com/actions/runner/blob/main/docs/adrs/1144-composite-actions.md
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Get soft to validate
uses: actions/checkout@main
with:
persist-credentials: false
repository: M-Priour/validateCDA
ref: ubuntu
path: validateCDA
# Get REPO
- name: get REPO
uses: actions/checkout@v3
with:
path: testContenuCDA
#- uses: actions/setup-java@v3
# with:
# distribution: 'oracle'
# java-version: '17'
- name: Validate
run: |
cd validateCDA
#mkdir report
javac -cp ".:./librairie/* ./validate.java
java -Xms2g -Xmx4g -cp ".:./librairie/*" validate -i ../testContenuCDA/ExemplesCDA/ -o ./report
- name: Get branch names
id: branch-name
uses: tj-actions/[email protected]
# Publishes the HTML page to a seperate branch in order to host it using GitHub-Pages.
# This will overwrite the currently published HTML page.
- name: 🚀 Deploy to GitHub-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./report
destination_dir: rapport/${{ steps.branch-name.outputs.current_branch }}
commit_message: ' ${{ github.event.head_commit.message }}'