Skip to content

Commit ba32c71

Browse files
srmnqSaraGfroerer
andauthored
Add workflow ci (#30)
* Add workflow ci * Delete travis yml Co-authored-by: Sara Gfrörer <[email protected]>
1 parent 098c180 commit ba32c71

File tree

2 files changed

+41
-15
lines changed

2 files changed

+41
-15
lines changed

.github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Validate composer.json and composer.lock
17+
run: composer validate
18+
19+
- name: Get Composer Cache Directory
20+
id: composer-cache
21+
run: |
22+
echo "::set-output name=dir::$(composer config cache-files-dir)"
23+
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
27+
- name: Run test suite
28+
run: composer test
29+
30+
- name: Run phpstan
31+
run: composer analyze
32+
33+
- name: Run codestyle checker
34+
run: composer cs-check
35+
36+
- uses: actions/cache@v1
37+
with:
38+
path: ${{ steps.composer-cache.outputs.dir }}
39+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-composer-

.travis.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)