Skip to content
Snippets Groups Projects
Unverified Commit 9a50d322 authored by Paul Lettich's avatar Paul Lettich Committed by GitHub
Browse files

Update PHP actions

- ignore caches
- use php-actions
parent e33f5a7b
Branches
Tags
1 merge request!9[pull] main from privacyidea:master
......@@ -20,20 +20,23 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
# - name: Cache Composer packages
# id: composer-cache
# uses: actions/cache@v3
# with:
# path: vendor
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
uses: php-actions/composer@v6
# run: composer install --prefer-dist --no-progress
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run test suite
run: composer run-script test
uses: php-actions/phpunit@v3
# run: composer run-script test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment