-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 915 Bytes
/
test.yml
File metadata and controls
43 lines (35 loc) · 915 Bytes
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
name: PHP Script Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0' # Specify your PHP version
extensions: bcmath, gmp
coverage: none
tools: none
- name: Verify PHP Installation
run: |
php -v
php -m | grep -i -E 'bcmath|gmp'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Update to a supported Python version
- name: Install Python Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install netaddr
- name: Run Test Script
run: |
chmod +x tests/test_diff.sh
./tests/test_diff.sh