Skip to content

Commit

Permalink
Add Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
leo108 committed Aug 13, 2023
1 parent 889eb9f commit 84c3b95
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PHP Composer

on: [push]

permissions:
contents: read

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Lint
run: composer pint -- --test

- name: Run test suite
run: composer phpunit
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:
tests:
override:
-
command: 'composer phpunit -- --coverage-clover=.coverage.xml'
command: 'XDEBUG_MODE=coverage composer phpunit -- --coverage-clover=.coverage.xml'
coverage:
file: '.coverage.xml'
format: 'clover'
Expand Down

0 comments on commit 84c3b95

Please sign in to comment.