-
Notifications
You must be signed in to change notification settings - Fork 39
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
38 changed files
with
3,795 additions
and
2,769 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,48 @@ | ||
name: Build and test | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Dump PHP version | ||
run: php -v | ||
|
||
- name: Validate composer.json | ||
run: composer validate --strict | ||
|
||
- name: Lint all PHP files | ||
run: composer run qa:lint | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install Barrel API Client dependencies through Composer | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Get lines of code | ||
run: composer run qa:phploc | ||
|
||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: phploc | ||
path: build/artifacts/phploc/phploc.xml | ||
|
||
- name: Run static code analyser | ||
run: composer run qa:phpstan | ||
|
||
- name: Run unit tests | ||
run: composer run test:phpunit:coverage | ||
|
||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: PHPUnit Code Coverage report | ||
path: build/artifacts/phpunit/coverage |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ vendor | |
composer.phar | ||
phpunit.xml | ||
PHP_BitTorrent-*.tgz | ||
.phpunit.result.cache |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
PHP BitTorrent | ||
|
||
Copyright (c) 2011-2013, Christer Edvartsen <[email protected]> | ||
Copyright (c) 2011-2020, Christer Edvartsen <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.