Trigger actions on pull request.

pull/255/head
Cédric Bonhomme 2019-12-17 14:27:51 +01:00
parent a4b8d812d4
commit 0c2e5ee1f6
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
name: PHP Composer
name: build
on: [push]
on: [push, pull_request]
jobs:
build:
@ -43,10 +43,10 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
- name: Install PHP dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Make PHP modules symlinks
- name: Create synlinks for MONARC PHP modules
run: |
mkdir -p module/Monarc
cd module/Monarc
@ -57,7 +57,7 @@ jobs:
- name: Set MONARC configuration file
run: cp ./config/autoload/local.php.dist ./config/autoload/local.php
- name: Populating common database
- name: Creating and populating databases
run: |
mysql -u root -p$MYSQL_ROOT_PASSWORD -P $MYSQL_HOST_PORT -e "CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
mysql -u root -p$MYSQL_ROOT_PASSWORD -P $MYSQL_HOST_PORT -e "CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"

View File

@ -5,6 +5,9 @@ MONARC - Method for an Optimised aNAlysis of Risks by CASES
![License](https://img.shields.io/github/license/monarc-project/MonarcAppFO.svg?style=flat-square)
![Contributors](https://img.shields.io/github/contributors/monarc-project/MonarcAppFO.svg?style=flat-square)
![Stars](https://img.shields.io/github/stars/monarc-project/MonarcAppFO.svg?style=flat-square)
[![Workflow](https://github.com/monarc-project/MonarcAppFO/workflows/build/badge.svg)](https://github.com/monarc-project/MonarcAppFO/actions?query=build)
[![Twitter](https://img.shields.io/twitter/follow/MONARCProject.svg?style=social&label=Follow&style=flat-square)](https://twitter.com/MONARCproject)
Introduction
------------