Skip to content

Commit 6aec469

Browse files
committed
Add CI configuration
To make issues like #33 easier to catch, this adds Conform Universal to the CI so that it automatically tests all implemented devices on push.
1 parent 1b15540 commit 6aec469

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/conformu.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ConformU
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
conformu:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
device: [telescope, dome, camera, rotator, focuser, observingconditions, filterwheel, switch, safetymonitor, covercalibrator]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Download and unpack ConformU
17+
run: mkdir ~/conformu && curl -L https://github.com/ASCOMInitiative/ConformU/releases/download/v4.1.0/conformu.linux-x64.tar.xz | tar -xJ -C ~/conformu
18+
- name: Build simulators
19+
run: dotnet build
20+
working-directory: ASCOM.Alpaca.Simulators
21+
- name: Start simulators server
22+
run: |
23+
dotnet run &
24+
npx wait-on http://localhost:32323/
25+
working-directory: ASCOM.Alpaca.Simulators
26+
# Execute those sequentially to avoid blowing up number of job combinations even further.
27+
- name: Run protocol test
28+
run: ~/conformu/conformu alpacaprotocol http://localhost:32323/api/v1/${{ matrix.device }}/0
29+
- name: Run conformance test
30+
run: ~/conformu/conformu conformance http://localhost:32323/api/v1/${{ matrix.device }}/0

0 commit comments

Comments
 (0)