Skip to content

Feature/auth with API KEY (#32) #227

Feature/auth with API KEY (#32)

Feature/auth with API KEY (#32) #227

Workflow file for this run

name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
coverage: xdebug
extensions: soap
- name: Install dependent libraries
run: |
sudo apt-get update
- name: Cache Packages
uses: actions/cache@v1
with:
path: vendor
key: v2-dependencies-${{ hashFiles('composer.lock') }}
restore-keys: |
v2-dependencies-${{ hashFiles('composer.lock') }}
- name: Install dependencies
run: composer install
- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix ./ --diff --dry-run
- name: Run phpunit
run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v