-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.5 KB
/
pest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Tests
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: xdebug
- name: Install secp256k1_nostr extension for PHP
run: sudo apt install autoconf build-essential git libtool pkgconf
- name: Clone secp256k1_nostr extension for PHP repository
uses: actions/checkout@v4
with:
repository: '1ma/secp256k1-nostr-php'
ref: 'v0.1.3'
path: 'build/1ma/secp256k1-nostr-php'
- name: Init secp256k1_nostr extension for PHP
working-directory: ./build/1ma/secp256k1-nostr-php
run: |
git submodule init
git submodule update
- name: Build secp256k1_nostr extension for PHP
working-directory: ./build/1ma/secp256k1-nostr-php
run: |
make secp256k1 ext
make check
- name: Install secp256k1_nostr extension for PHP
working-directory: ./build/1ma/secp256k1-nostr-php
run: sudo make install
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
ini-values: extension=secp256k1_nostr.so
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Tests
run: composer test -- --parallel