-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (38 loc) · 1.11 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
name: PECEv1 CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: juampynr/drupal7ci:latest
services:
mariadb:
image: mariadb:latest
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
dev:
image: revagomes/pece:php7-alpha-1
env:
DB_NAME: pece
DB_USER: pece
DB_PASSWORD: pece
DB_ROOT_PASSWORD: root
DB_PORT: 3306
DB_HOST: mariadb
ports:
- 8098:80
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Setup Environment
run: |
docker exec pece_dev npm install && gulp setup && gulp build && gulp site-install
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
# - name: Run test suite
# run: composer run-script test