Merge tiny GHA and refactors #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Windows Installer | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-installer: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Download Windows installer | |
run: | | |
curl -L -o open-redatam-windows.exe https://github.com/pachadotdev/open-redatam/releases/download/v2.0/open-redatam-windows.exe | |
- name: Install Windows package | |
run: | | |
Start-Process -FilePath open-redatam-windows.exe -ArgumentList '/S', '/D=C:\Program Files\OpenRedatam' -Wait | |
- name: Verify installation and convert DIC file | |
run: | | |
& "C:\Program Files\OpenRedatam\redatam.exe" test\galapagos\cg15.dic test\galapagos\dic-to-csv | |
& "C:\Program Files\OpenRedatam\redatam.exe" test\galapagos\cg15.dicX test\galapagos\dicx-to-csv | |
- name: Check conversion results | |
run: | | |
dir test\galapagos\dic-to-csv | |
dir test\galapagos\dicx-to-csv |