From 017b6681cee3e3c305f17adfb52122672d0e2630 Mon Sep 17 00:00:00 2001 From: Markus Poerschke Date: Sat, 26 Sep 2020 23:25:04 +0200 Subject: [PATCH] Run tests with GitHub actions (#176) --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59b7d641..fa591866 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"