-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (46 loc) · 1.43 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test and code coverage
on:
- push
jobs:
lint:
runs-on: ubuntu-latest
container: quantcdn/drupal-ci:9.4.x-dev
steps:
- uses: actions/checkout@v2
- name: Lint
run: phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,yml .
phpunit:
runs-on: ubuntu-latest
container: quantcdn/drupal-ci:9.4.x-dev
services:
mariadb:
image: mariadb:10.11
ports:
- 3306:3306
env:
MYSQL_DATABASE: drupal9
MYSQL_ROOT_PASSWORD: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=30
steps:
- name: Install Drupal
run: drush si --db-url=mysql://root:drupal@mariadb:3306/drupal9 -y
working-directory: /var/www/drupal
- name: Install module dependencies
run: composer --no-interaction --no-progress require drupal/token
working-directory: /var/www/drupal
- name: Set up custom module
run: mkdir -p /var/www/drupal/web/modules/custom/quant
- uses: actions/checkout@v2
with:
path: quant
- name: Move the module
run: mv ./quant /var/www/drupal/web/modules/custom
- name: Enable quant
run: drush en quant -y
working-directory: /var/www/drupal