Skip to content

Commit ad19cac

Browse files
committed
GH actions
1 parent 4865433 commit ad19cac

File tree

2 files changed

+44
-25
lines changed

2 files changed

+44
-25
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CliMdRenderer
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+
strategy:
13+
matrix:
14+
php: [7.1, 7.2, 7.3, 7.4, 8.0]
15+
16+
name: PHP ${{ matrix.php }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
tools: composer:v2
26+
27+
- name: Install Dependencies
28+
run: composer update
29+
30+
- name: Run phpunit tests
31+
run: |
32+
mkdir -p build/logs
33+
vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
34+
35+
- name: Run phpcs
36+
run: composer cs
37+
38+
- name: Run phpstan
39+
run: composer static
40+
41+
- name: Coverage upload
42+
if: matrix.php == '7.4'
43+
run: bash <(curl -s https://codecov.io/bash)
44+

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)