Skip to content

Commit c4175eb

Browse files
authored
Merge pull request #5 from 77web/feat/ci
start building on GHA
2 parents 35864f6 + af1319a commit c4175eb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-20.04
9+
10+
steps:
11+
- name: Setup PHP
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: '8.2'
15+
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: prepare
20+
run: >
21+
composer install
22+
- name: run postgresql server
23+
run: >
24+
docker compose up -d
25+
26+
- name: cs
27+
run: >
28+
vendor/bin/ecs
29+
30+
- name: phpstan
31+
run: >
32+
vendor/bin/phpstan
33+
34+
- name: test
35+
run: >
36+
vendor/bin/phpunit

0 commit comments

Comments
 (0)