name: Build and test

on: [pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-18.04, ubuntu-20.04]
    steps:
    - uses: actions/checkout@v2
    - run: sudo apt-get update && sudo apt-get -y install libneon27-dev gettext
    - run: ./autogen.sh
    - run: ./configure
    - run: make
