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: ...@@ -20,20 +20,23 @@ jobs:
- name: Validate composer.json and composer.lock - name: Validate composer.json and composer.lock
run: composer validate run: composer validate
- name: Cache Composer packages # - name: Cache Composer packages
id: composer-cache # id: composer-cache
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: vendor # path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} # key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: | # restore-keys: |
${{ runner.os }}-php- # ${{ runner.os }}-php-
- name: Install dependencies - 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" # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md # Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run test suite - 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