Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
h-shvedko committed Nov 3, 2023
1 parent f9ecd75 commit 39db5f1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,19 @@ jobs:
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: "Install dependencies"
uses: "ramsey/[email protected]"
- name: "Validate composer.json and composer.lock"
run: "composer validate"
- name: "Get composer cache directory"
id: "composer-cache"
run: "echo \"::set-output name=dir::$(composer config cache-files-dir)\""
- name: "Cache composer dependencies"
uses: "actions/cache@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"
path: "${{ steps.composer-cache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Install Composer dependencies"
run: "composer install"

- name: "Tests"
run: "vendor/bin/phpunit tests/ --colors"
Expand Down

0 comments on commit 39db5f1

Please sign in to comment.