-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 977 Bytes
/
workflow.yml
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
35
36
37
38
39
40
41
name: shared-query-builder-CI
on:
[push, pull_request]
jobs:
build-php-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install
check-code-php-8:
runs-on: ubuntu-latest
needs: [ build-php-8 ]
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install
- name: cs-check
run: composer cs-check
- name: phpstan
run: composer phpstan
tests-php-8:
runs-on: ubuntu-latest
needs: [ build-php-8 ]
steps:
- uses: actions/checkout@v2
- name: composer install
run: composer install
- name: setting mysql
run: |
sudo systemctl enable mysql.service
sudo systemctl start mysql.service
mysql -uroot -proot -h localhost -e "CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_general_ci;"
- name: phpunit
run: composer phpunit