Skip to content

Commit 2eb4c80

Browse files
author
Greg Bowler
committed
Add base action files
0 parents  commit 2eb4c80

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM composer:1.9
2+
3+
LABEL version="1.0.0"
4+
LABEL repository="https://github.com/php-actions/phpspec"
5+
LABEL homepage="https://github.com/php-actions/phpunit"
6+
LABEL maintainer="Greg Bowler <[email protected]>"
7+
8+
RUN composer global require --no-progress --dev phpspec/phpspec ^6.0
9+
COPY entrypoint /usr/local/bin/entrypoint
10+
ENTRYPOINT ["/usr/local/bin/entrypoint"]

action.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: phpspec (php-actions)
2+
description: Run your phpspec tests in your Github Actions.
3+
4+
inputs:
5+
config:
6+
description: Configuration file location
7+
required: false
8+
default: test/phpspec/phpspec.yml
9+
10+
runs:
11+
using: 'docker'
12+
image: 'Dockerfile'
13+
args:
14+
- -c
15+
- ${{ inputs.config }}
16+
17+
branding:
18+
icon: 'check-square'
19+
color: 'purple'

entrypoint

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
PATH=/tmp/vendor/bin:$PATH
4+
phpspec run "$@"

0 commit comments

Comments
 (0)