Skip to content

Update test

Update test #29

Workflow file for this run

name: Ada (GNAT)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up GNAT toolchain
run: >
sudo apt-get update && sudo apt-get install wget unzip -y &&
wget https://github.com/alire-project/alire/releases/download/v1.2.2/alr-1.2.2-bin-x86_64-linux.zip &&
unzip alr*.zip
- name: Build
run: bin/alr toolchain --select gnat_native gprbuild &&
bin/alr build
- name: Test
run: >
sudo apt-get install -y mosquitto &&
echo "127.0.0.1 mqtt" | sudo tee -a /etc/hosts &&
sudo systemctl start mosquitto &&
MQTT_HOST=localhost make test