forked from litalbarkai/open-redatam
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.35 KB
/
tests-mac-installer.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: Test macOS Installer
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-installer:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download macOS DMG
run: |
curl -L -o open-redatam-mac.dmg https://github.com/pachadotdev/open-redatam/releases/download/v2.1.0/open-redatam-mac.dmg
- name: Mount DMG
run: |
hdiutil attach open-redatam-mac.dmg
- name: List contents of test/uru2011mini directory
run: ls -l test/uru2011mini
- name: Verify installation and convert DIC file
run: |
/Volumes/Redatam/Applications/redatam test/uru2011mini/uru2011mini.dic test/uru2011mini/dic-to-csv
/Volumes/Redatam/Applications/redatam test/uru2011mini/uru2011mini.dicx test/uru2011mini/dicx-to-csv
- name: Check conversion results
run: |
ls -l test/uru2011mini/dic-to-csv
ls -l test/uru2011mini/dicx-to-csv
- name: Install XQuartz
run: brew install --cask xquartz
- name: Start XQuartz and run RedatamGUI.app
run: |
open -a XQuartz
export DISPLAY=:0
sleep 3
open /Volumes/Redatam/Applications/RedatamGUI.app
sleep 10 # Wait for the application to start
pkill -f XQuartz