Skip to content

Commit 48f88cb

Browse files
committed
Github CI workflow
1 parent 4ad2eea commit 48f88cb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: [ubuntu-latest]
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: Cache PHP dependencies
13+
uses: actions/cache@v1
14+
with:
15+
path: vendor
16+
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
17+
18+
- uses: php-actions/composer@v1
19+
20+
- name: Upload build for test runner
21+
uses: actions/upload-artifact@v1
22+
with:
23+
name: build-artifact
24+
path: ./
25+
26+
test:
27+
runs-on: [ubuntu-latest]
28+
needs: [build]
29+
30+
steps:
31+
- uses: actions/download-artifact@v1
32+
with:
33+
name: build-artifact
34+
path: ./
35+
36+
- uses: php-actions/phpunit@v1

0 commit comments

Comments
 (0)