Skip to content

Commit 654192c

Browse files
committed
[TASK] Add github action
1 parent 5b6f391 commit 654192c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
name: Source code linting
8+
runs-on: ubuntu-latest
9+
steps:
10+
-
11+
uses: actions/checkout@v2
12+
13+
-
14+
name: Validate composer.json
15+
run: composer validate
16+
17+
-
18+
name: Cache composer dependencies
19+
uses: actions/cache@v1
20+
with:
21+
path: ~/.composer/cache
22+
key: composer
23+
24+
-
25+
name: Install composer dependencies
26+
run: composer install --prefer-dist --no-progress --no-suggest
27+
28+
-
29+
name: PHP Linting
30+
run: composer lint:php
31+
32+
-
33+
name: Editorconfig Linting
34+
run: composer lint:editorconfig

0 commit comments

Comments
 (0)