-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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: '7.4' # 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.6' # Specify your Python version | ||
|
||
- name: Install Python Dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
# If your Python script requires additional packages, install them here | ||
# Example: | ||
# python3 -m pip install -r requirements.txt | ||
- name: Run Test Script | ||
run: | | ||
chmod +x tests/test_diff.sh | ||
./tests/test_diff.sh |