Skip to content

Commit b510f9f

Browse files
authored
Fix installation of older version of omc (#333)
* Add test to install older version of omc * Updating node version in action.yml * Updating packages
1 parent 75cbadb commit b510f9f

12 files changed

Lines changed: 18606 additions & 17906 deletions

File tree

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
"es6": true,
5353
"jest/globals": true
5454
}
55-
}
55+
}

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dist/** -diff linguist-generated=true
1+
dist/** -diff linguist-generated=true

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
strategy:
2424
matrix:
2525
os: [ubuntu-latest, windows-latest]
26+
version: [stable, '1.19']
2627
runs-on: ${{ matrix.os }}
2728
steps:
2829
- uses: actions/checkout@v4
2930
- uses: ./
3031
with:
31-
version: 'stable'
32+
version: ${{ matrix.version }}
3233
packages: |
3334
'omc'
3435
'omsimulator'

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,7 @@ Thumbs.db
9696

9797
# Ignore built ts files
9898
__tests__/runner/*
99-
lib/**/*
99+
lib/**/*
100+
101+
# Ignore VS Code settings
102+
.vscode/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dist/
22
lib/
3-
node_modules/
3+
node_modules/

CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

__tests__/installer.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@ function linuxTests(): void {
124124
10 * 60000
125125
)
126126

127+
test(
128+
'Install 64 bit OpenModelica 1.19',
129+
async () => {
130+
await purgeOMC()
131+
const version = installer.getOMVersion('1.19')
132+
await installer.installOM(['omc'], version, '64')
133+
const resVer = await installer.showVersion('omc')
134+
expect(resVer).toContain('1.19.2')
135+
},
136+
10 * 60000
137+
)
138+
127139
test(
128140
'Install OMSimulator',
129141
async () => {

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Setup OpenModelica environment'
22
description: 'Set up a OpenModelica environment and add it to the PATH'
33
author: 'Andreas Heuermann'
4+
45
inputs:
56
version:
67
description: 'The OpenModelica version to use.
@@ -27,9 +28,11 @@ inputs:
2728
description: 'Install OpenModelica omc-diff tool.'
2829
required: false
2930
default: false
31+
3032
runs:
31-
using: 'node16'
33+
using: 'node20'
3234
main: 'dist/index.js'
35+
3336
branding:
3437
icon: 'download'
3538
color: 'blue'

0 commit comments

Comments
 (0)