Skip to content

Commit

Permalink
Merge pull request #1 from php/tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
shivammathur authored Jan 27, 2025
2 parents ba918b7 + 6abd5b4 commit 4350419
Show file tree
Hide file tree
Showing 34 changed files with 2,884 additions and 60 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Php
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Run tests
run: vendor/bin/phpunit --coverage-text
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/vendor/
/builds/
xdebug-filter.php
.phpunit.result.cache
.phpunit.cache
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "php/web-downloads",
"type": "project",
"license": "MIT",
"require": {
"ext-fileinfo": "*",
"ext-curl": "*",
"ext-zip": "*"
},
"autoload": {
"classmap": [
"src/"
]
},
"require-dev": {
"phpunit/phpunit": "^11"
}
}
Loading

0 comments on commit 4350419

Please sign in to comment.