Skip to content
Snippets Groups Projects
Unverified Commit 37788862 authored by lukasmatusiewicz's avatar lukasmatusiewicz Committed by GitHub
Browse files

Update and rename runTests.yml to composer.yml

parent d206744f
No related branches found
No related tags found
1 merge request!9[pull] main from privacyidea:master
name: PHP Composer and tests
name: PHP & Composer
on:
push:
......@@ -6,11 +6,11 @@ on:
pull_request:
branches: [ master ]
#permissions:
# contents: read
jobs:
build:
permissions:
write-all
runs-on: ubuntu-latest
......@@ -20,15 +20,6 @@ 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: Check PHP installation
run: php -m
......@@ -36,13 +27,5 @@ jobs:
run: dpkg --get-selections | grep -i php
- name: Install dependencies
run: composer install --prefer-dist --no-progress
# uses: php-actions/composer@v6
# 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
uses: php-actions/composer@v6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment