Skip to content

Commit 90d0a76

Browse files
authored
Create Github build actions for CI (#22)
* Create Github build actions for CI * Add cache for vendors
1 parent 4d1de85 commit 90d0a76

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/php.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Get Composer Cache Directory
14+
id: composer-cache
15+
run: |
16+
echo "::set-output name=dir::$(composer config cache-files-dir)"
17+
18+
- uses: actions/cache@v1
19+
with:
20+
path: ${{ steps.composer-cache.outputs.dir }}
21+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-composer-
24+
25+
- name: Validate composer.json and composer.lock
26+
run: composer validate
27+
28+
- name: Install dependencies
29+
run: composer install
30+
31+
- name: Run test suite
32+
run: composer check

0 commit comments

Comments
 (0)