Add github workflow to test the build is correct

This commit is contained in:
Gustavo Garcia 2022-07-26 23:03:46 +02:00
parent b9b232bcdd
commit 62c41b7737
No known key found for this signature in database
GPG Key ID: B5D049293A189652

32
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: C/C++ CI
on:
push:
branches: [ $default-branch ]
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libevent-dev \
libssl-dev \
libpq-dev libmariadb-dev libsqlite3-dev \
libhiredis-dev \
libmongoc-dev \
libmicrohttpd-dev
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check