Skip to content

Commit

Permalink
Try GitHub actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Feb 2, 2021
1 parent d7ee1b3 commit dd43a76
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,32 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

metrics:
name: "Metrics"
runs-on: ubuntu-18.04
needs: "build"

steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "Build environment"
uses: shivammathur/setup-php@v2
with:
php-version: "7.1"
extensions: "zip"
coverage: "xdebug"

- name: "Dependencies"
run: COMPOSER_MEMORY_LIMIT=-1 composer update

- name: "Application"
run: |
mkdir -p build/logs
wget -c -nc --retry-connrefused --tries=0 https://github.com/phpmetrics/PhpMetrics/releases/download/v2.7.3/phpmetrics.phar -O phpmetrics.phar
chmod +x phpmetrics.phar
php phpmetrics.phar --version
- name: "Metrics"
run: php phpmetrics.phar --report-html=build/logs/ src/

0 comments on commit dd43a76

Please sign in to comment.