Skip to content

Commit 7b02f85

Browse files
author
Greg Bowler
committed
Update readme
1 parent be7b25d commit 7b02f85

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
# Use the Composer CLI in your Github Actions.
1+
<img src="http://52.48.57.141/php-actions.png" align="right" alt="PHP Actions for Github" />
2+
3+
Use the Composer CLI in your Github Actions.
4+
==============================================
5+
6+
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
7+
8+
If you are running tests like [PHPUnit](php-actions-phpunit), [phpspec](php-actions-phpspec) or [Behat](php-actions-behat) in your Github actions, chances are you will need to install your project's dependencies using Composer.
9+
10+
Usage
11+
-----
12+
13+
Create your Github Workflow configuration in `.github/workflows/ci.yml` or similar.
14+
15+
```yaml
16+
name: CI
17+
18+
on: [push]
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v1
26+
- uses: phpactions/composer@master
27+
# ... then your own project steps ...
28+
```

0 commit comments

Comments
 (0)