Skip to content

Commit 36419cb

Browse files
author
Andy McKay
authored
Merge pull request actions#88 from christeredvartsen/issue/15-php-template
Initial commit of PHP template
2 parents 4529f67 + 01383c3 commit 36419cb

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

ci/php.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PHP Composer
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Validate composer.json and composer.lock
14+
run: composer validate
15+
16+
- name: Install dependencies
17+
run: composer install --prefer-dist --no-progress --no-suggest
18+
19+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
20+
# Docs: https://getcomposer.org/doc/articles/scripts.md
21+
22+
# - name: Run test suite
23+
# run: composer run-script test

ci/properties/php.properties.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "PHP",
3+
"description": "Build and test a PHP application using Composer",
4+
"iconName": "php",
5+
"categories": ["PHP", "Composer"]
6+
}

0 commit comments

Comments
 (0)