This commit is contained in:
Jakub Zelenka 2025-02-15 12:02:22 +01:00
parent 42ee4c86db
commit 7fc5c9a09c
No known key found for this signature in database
GPG key ID: 1C0779DC5C0A9DE4

36
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ${{ matrix.ubuntu }}
strategy:
matrix:
ubuntu: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
steps:
- name: Checkout php-gnupg
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gpg gpgme gpgsm libgpgme-dev php-cli php-dev autoconf automake libtool make gcc
- name: Build and install php-gnupg
run: |
phpize
./configure
make
sudo make install
- name: Run tests
run: |
make test