Enhance CI/CD workflow (#932)

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* testing
This commit is contained in:
Verkehrsrot 2023-01-29 17:53:49 +01:00 committed by GitHub
parent c9017f1f04
commit 78ea70037d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,4 +250,20 @@ jobs:
- name: Build and deploy for testboard - name: Build and deploy for testboard
env: env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: pio remote -a prenzlpi run -t upload -r run: pio remote -a prenzlpi run -t upload -r
- name: Wait 120 seconds
run: sleep 120s
shell: bash
- name: Query testboard
uses: indiesdev/curl@v1.1
id: ttn
with:
#Get latest decoded payload message seen last 120 seconds from testboard
url: 'https://eu1.cloud.thethings.network/api/v3/as/applications/paxcounter-cicd/packages/storage/uplink_message?f_port=1&order=-received_at&last=120s&limit=1&type=uplink_message&field_mask=up.uplink_message.decoded_payload'
method: 'GET'
bearer-token: ${{ secrets.BEARER_TOKEN }}
headers: '{"Accept": "text/event-stream"}'
log-response: false
- name: Check testboard response
run:
echo ${{ fromJson(steps.ttn.outputs.response).data.result.uplink_message.decoded_payload.pax }}