Skip to content

Commit

Permalink
very minimal static analysis when pushing new code
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Oct 29, 2023
1 parent f214319 commit 60a8e62
Show file tree
Hide file tree
Showing 9 changed files with 622 additions and 626 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build

on: [push, pull_request]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0', '8.1', '8.2']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: curl, json
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Static analysis
run: |
composer require --dev phpstan/phpstan
vendor/bin/phpstan analyse -l 4 src tests
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"keywords": ["youtube downloader", "download youtube", "download youtube videos"],
"license": "MIT",
"require": {
"php": "^5.6 || ^7.0 || ^8.0",
"php": "^7.4|^8.0",
"ext-curl": "*",
"ext-json": "*",
"athlon1600/php-curl-file-downloader": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7|6.2|^7.0|^8.0"
"phpunit/phpunit": "^8.0 || ^9.0 || ^10.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 60a8e62

Please sign in to comment.