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 bb82bb2
Showing 1 changed file with 21 additions and 0 deletions.
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 -- --coverage-clover=.coverage.xml

0 comments on commit bb82bb2

Please sign in to comment.