Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
php-client
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
php-client
Commits
f316a62d
Unverified
Commit
f316a62d
authored
3 years ago
by
lukasmatusiewicz
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create runTests.yml
parent
c31b7478
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/runTests.yml
+39
-0
39 additions, 0 deletions
.github/workflows/runTests.yml
with
39 additions
and
0 deletions
.github/workflows/runTests.yml
0 → 100644
+
39
−
0
View file @
f316a62d
name
:
PHP Composer and tests
on
:
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
permissions
:
contents
:
read
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Validate composer.json and composer.lock
run
:
composer validate --strict
-
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
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment