Skip to content

Commit

Permalink
Updating omc version, updating Node, updating JS packages (#323)
Browse files Browse the repository at this point in the history
  - Added OpenModelica v1.22.0 release
  - Updated Node 18 to 20
  - Updated dependencies
    - @actions/core:1.10.0 --> 1.10.1
    - @types/node:18.16.3 --> 20.9.0
    - @types/semver:7.5.0 -->  7.5.5
    - @typescript-eslint/parser:5.62.0 --> 6.10.0
    - eslint:8.46.0 --> 8.53.0
    - prettier:2.8.8 --> 3.0.3
  - Added dev dependencies
    - @typescript-eslint/eslint-plugin:6.10.0
  • Loading branch information
AnHeuermann authored Nov 9, 2023
1 parent f7052ec commit d5ab4ce
Show file tree
Hide file tree
Showing 10 changed files with 25,531 additions and 1,572 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Node.js 18.x
uses: actions/setup-node@v3.8.1
- name: Set Node.js 20.x
uses: actions/setup-node@v4.0.0
with:
node-version: 18.x
node-version: 20.x
- run: |
npm install
- run: |
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ On Linux apt is used to install OpenModelica, on Windows the installer executabl
| nightly | Linux | amd64, arm64, armhf, i386 | ✔️ |
| stable | Linux | amd64, arm64, armhf, i386 | ✔️ |
| release | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.21.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
Expand All @@ -56,6 +57,7 @@ On Linux apt is used to install OpenModelica, on Windows the installer executabl
| nightly | Windows | 64bit | ✔️ |
| stable | Windows | 64bit | ✔️ |
| release | Windows | 64bit | ✔️ |
| 1.22.0 | Windows | 64bit | ✔️ |
| 1.21.0 | Windows | 64bit | ✔️ |
| 1.20.0 | Windows | 64bit | ✔️ |
| 1.19.2 | Windows | 64bit | ✔️ |
Expand All @@ -73,9 +75,9 @@ On Linux apt is used to install OpenModelica, on Windows the installer executabl
## Examples
```yaml
- uses: AnHeuermann/setup-openmodelica@v0.6
- uses: AnHeuermann/setup-openmodelica@v0.7
with:
version: '1.21'
version: '1.22'
packages: |
'omc'
'omsimulator'
Expand All @@ -86,13 +88,13 @@ On Linux apt is used to install OpenModelica, on Windows the installer executabl
```
```yaml
- uses: AnHeuermann/setup-openmodelica@v0.6
- uses: AnHeuermann/setup-openmodelica@v0.7
with:
version: 'nightly'
```
```yaml
- uses: AnHeuermann/setup-openmodelica@v0.6
- uses: AnHeuermann/setup-openmodelica@v0.7
with:
version: 'stable'
```
Expand Down
10 changes: 5 additions & 5 deletions __tests__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function linuxTests(): void {
let outVer: installer.VersionType

outVer = installer.getOMVersion('1')
expect(outVer.version).toEqual('1.21.0')
expect(outVer.version).toEqual('1.22.0')

outVer = installer.getOMVersion('1.18')
expect(outVer.version).toEqual('1.18.1')
Expand All @@ -64,13 +64,13 @@ function linuxTests(): void {
})

test(
'Install 64 bit OpenModelica release 1.19',
'Install 64 bit OpenModelica release 1.22.0',
async () => {
await purgeOMC()
const version = installer.getOMVersion('1.19')
const version = installer.getOMVersion('1.22.0')
await installer.installOM(['omc'], version, '64')
const resVer = await installer.showVersion('omc')
expect(resVer).toEqual('1.19.2')
expect(resVer).toEqual('1.22.0')
},
10 * 60000
)
Expand Down Expand Up @@ -119,7 +119,7 @@ function linuxTests(): void {
const version = installer.getOMVersion('release')
await installer.installOM(['omc'], version, '64')
const resVer = await installer.showVersion('omc')
expect(resVer).toContain('1.21.')
expect(resVer).toContain('1.22.')
},
10 * 60000
)
Expand Down
Loading

0 comments on commit d5ab4ce

Please sign in to comment.