Skip to content

Upload artifacts to GitHub an tests #46

Upload artifacts to GitHub an tests

Upload artifacts to GitHub an tests #46

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
- 'releases/*'
tags: '*'
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Lint
id: npm-lint
run: npm run lint
- name: Test
id: npm-ci-test
run: npm run ci-test
test-action:

Check failure on line 46 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 46
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: Setup Python3
uses: actions/setup-python@v4
with:
python-version: 3.10
cache: pip # caching pip dependencies
- name: Setup OpenModelica
uses: AnHeuermann/[email protected]
with:
version: stable
packages: |
omc
libraries: |
Modelica 4.0.0
omc-diff: true
- name: Test openmodelica-library-testing
id: test-action
uses: ./
with:
package-name: MyLibrary
package-version: 1.0.0
modelica-file: examples/MyLibrary/package.mo
reference-files-dir: examples/ReferenceFiles
reference-files-format: csv
reference-files-delimiter: .
omc-version: stable
pages-root-url: https://anheuermann.github.io/openmodelica-library-testing-action
- 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