Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahila authored Nov 14, 2023
1 parent a5d5f8b commit edb547a
Showing 1 changed file with 48 additions and 45 deletions.
93 changes: 48 additions & 45 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:

- name: MATLAB-2021b
uses: matlab-actions/setup-matlab@v2-beta
with:
release: R2021b
- name: MATLAB-2022a
uses: matlab-actions/setup-matlab@v2-beta
with:
release: R2022a

- name: Script
run: matlab -batch matlabroot
# with:
# release: R2021b
# - name: MATLAB-2022a
# uses: matlab-actions/setup-matlab@v2-beta
# with:
# release: R2022a


# - name: Get mpm
Expand All @@ -31,19 +34,19 @@ jobs:
# run: cd matlab/R2022a/bin && export PATH=$(pwd):$PATH && printenv PATH


- name: Get license 21b
run: mkdir /home/runner/.matlab && cd /home/runner/.matlab/ && mkdir R2021b_licenses && cd R2021b_licenses && printenv LINUX_LIC > "license.lic" && ls
env:
LINUX_LIC: ${{ secrets.LINUX_R2021B}}
# - name: Get license 21b
# run: mkdir /home/runner/.matlab && cd /home/runner/.matlab/ && mkdir R2021b_licenses && cd R2021b_licenses && printenv LINUX_LIC > "license.lic" && ls
# env:
# LINUX_LIC: ${{ secrets.LINUX_R2021B}}

- name: Set MATLAB_ROOT_21b
run: matlab -batch version
- name: Get license 22a
run: mkdir /home/runner/.matlab && cd /home/runner/.matlab/ && mkdir R2022a_licenses && cd R2022a_licenses && printenv LINUX_LIC > "license.lic" && ls
env:
LINUX_LIC: ${{ secrets.LINUX_R2022A}}
- name: Set MATLAB_ROOT
run: matlab -batch version
# - name: Set MATLAB_ROOT_21b
# run: matlab -batch version
# - name: Get license 22a
# run: mkdir /home/runner/.matlab && cd /home/runner/.matlab/ && mkdir R2022a_licenses && cd R2022a_licenses && printenv LINUX_LIC > "license.lic" && ls
# env:
# LINUX_LIC: ${{ secrets.LINUX_R2022A}}
# - name: Set MATLAB_ROOT
# run: matlab -batch version


# - name: Run MATLAB command
Expand All @@ -65,33 +68,33 @@ jobs:



- name: Build project with Maven
if: always()
run: mvn -B clean test-compile failsafe:integration-test
- uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: target/failsafe-reports
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: test-results/failsafe-summary.xml
report_individual_runs: "true"
- uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: target/failsafe-reports
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: test-results
reporter: java-junit
fail-on-error: true
# - name: Build project with Maven
# if: always()
# run: mvn -B clean test-compile failsafe:integration-test
# - uses: actions/upload-artifact@v2 # upload test results
# if: success() || failure() # run this step even if previous step failed
# with:
# name: test-results
# path: target/failsafe-reports
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action/composite@v1
# if: always()
# with:
# files: test-results/failsafe-summary.xml
# report_individual_runs: "true"
# - uses: actions/upload-artifact@v2 # upload test results
# if: success() || failure() # run this step even if previous step failed
# with:
# name: test-results
# path: target/failsafe-reports
# - name: Report
# uses: dorny/test-reporter@v1
# if: always()
# with:
# name: Maven Tests
# path: test-results
# reporter: java-junit
# fail-on-error: true
# mvn -Dtest=RunMATLABCommandIT#verifyBuildPassesWhenMatlabCommandPasses test
#

Expand Down

0 comments on commit edb547a

Please sign in to comment.