Skip to content

Commit

Permalink
Run tests with GitHub actions (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspoerschke authored Sep 26, 2020
1 parent 52eabca commit 017b668
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,27 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix code style!

test:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: 'echo "::set-output name=directory::$(composer config cache-dir)"'

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-composer-cache"

- name: "Run tests"
run: "make -j -O test"

0 comments on commit 017b668

Please sign in to comment.