mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-01-11 19:09:35 +00:00
Add CI
This commit is contained in:
parent
42ee4c86db
commit
7fc5c9a09c
1 changed files with 36 additions and 0 deletions
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue