-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.57 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Continuous Integration
on:
pull_request:
push:
branches:
- main
- 'releases/*'
tags: '*'
jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test openmodelica-library-testing
id: test-action
uses: ./
with:
package-name: MyLibrary
package-version: 1.0.0
modelica-file: examples/MyLibrary/package.mo
dependencies: |
Modelica 4.0.0+maint.om
omc-version: stable
reference-files-dir: examples/ReferenceFiles
reference-files-format: csv
reference-files-delimiter: .
pages-root-url: https://anheuermann.github.io/openmodelica-library-testing-action
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify action results
shell: bash
run: |
echo "simulation-tests-passing: ${{ steps.test-action.outputs.simulation-tests-passing }}"
echo "verification-tests-passing: ${{ steps.test-action.outputs.verification-tests-passing }}"
if [ "${{ steps.test-action.outputs.simulation-tests-passing }}" == "True" ] && [ ${{ steps.test-action.outputs.n-simulation-passing }} == 2 ] && [ "${{ steps.test-action.outputs.verification-tests-passing }}" == "False" ] && [ ${{ steps.test-action.outputs.n-verification-passing }} == 1 ]; then
exit 0;
else
exit 1;
fi