-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (30 loc) · 858 Bytes
/
ci.yml
File metadata and controls
34 lines (30 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: CI
on:
- push
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- uses: php-actions/composer@v6
- name: run phpunit tests
run: vendor/bin/phpunit tests --do-not-cache-result
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpstan@v3
with:
configuration: phpstan.neon
level: 5
validate-yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run yamllint
run: |
find . -path \*/vendor -prune -false -o -name \*.y\*ml |
xargs yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" || true