Skip to content

Commit

Permalink
Improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Jan 23, 2024
1 parent 3c0a811 commit 3a34c53
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build

on: [push,pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
Expand All @@ -22,19 +26,8 @@ jobs:
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php-version }}-composer-
- name: Install dependencies
run: composer install
- name: "Install composer dependencies"
uses: "ramsey/composer-install@v2"

- name: Run test suite
run: composer build

0 comments on commit 3a34c53

Please sign in to comment.