From 6aec46906ba6ce6ed382db51693260f25ee493dc Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 17 Dec 2024 18:21:24 +0000 Subject: [PATCH 1/2] 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. --- .github/workflows/conformu.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/conformu.yml diff --git a/.github/workflows/conformu.yml b/.github/workflows/conformu.yml new file mode 100644 index 00000000..cb231863 --- /dev/null +++ b/.github/workflows/conformu.yml @@ -0,0 +1,30 @@ +name: ConformU + +on: [push, pull_request] + +jobs: + conformu: + + runs-on: ubuntu-latest + + strategy: + matrix: + device: [telescope, dome, camera, rotator, focuser, observingconditions, filterwheel, switch, safetymonitor, covercalibrator] + + steps: + - uses: actions/checkout@v4 + - name: Download and unpack ConformU + run: mkdir ~/conformu && curl -L https://github.com/ASCOMInitiative/ConformU/releases/download/v4.1.0/conformu.linux-x64.tar.xz | tar -xJ -C ~/conformu + - name: Build simulators + run: dotnet build + working-directory: ASCOM.Alpaca.Simulators + - name: Start simulators server + run: | + dotnet run & + npx wait-on http://localhost:32323/ + working-directory: ASCOM.Alpaca.Simulators + # Execute those sequentially to avoid blowing up number of job combinations even further. + - name: Run protocol test + run: ~/conformu/conformu alpacaprotocol http://localhost:32323/api/v1/${{ matrix.device }}/0 + - name: Run conformance test + run: ~/conformu/conformu conformance http://localhost:32323/api/v1/${{ matrix.device }}/0 From 59b5cbf556bf55c54169c9130e821ea7ff124762 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 19 Dec 2024 12:55:16 +0000 Subject: [PATCH 2/2] Try reordering tests --- .github/workflows/conformu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conformu.yml b/.github/workflows/conformu.yml index cb231863..86bdcd99 100644 --- a/.github/workflows/conformu.yml +++ b/.github/workflows/conformu.yml @@ -24,7 +24,7 @@ jobs: npx wait-on http://localhost:32323/ working-directory: ASCOM.Alpaca.Simulators # Execute those sequentially to avoid blowing up number of job combinations even further. - - name: Run protocol test - run: ~/conformu/conformu alpacaprotocol http://localhost:32323/api/v1/${{ matrix.device }}/0 - name: Run conformance test run: ~/conformu/conformu conformance http://localhost:32323/api/v1/${{ matrix.device }}/0 + - name: Run protocol test + run: ~/conformu/conformu alpacaprotocol http://localhost:32323/api/v1/${{ matrix.device }}/0