Skip to content

Commit 2af9dd9

Browse files
committed
Add github workflow
1 parent 7be0c8a commit 2af9dd9

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.env.dist_ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ APP_SECRET=eddd92c1e624a90b0c1765449200328d
1414
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
1515
# Configure your db driver and server_version in config/packages/doctrine.yaml
1616
DATABASE_URL=mysql://symfony:[email protected]:3306/phpofby
17-
DB_SERVER_VERSION=5.5
17+
DB_SERVER_VERSION=5.6
1818
###< doctrine/doctrine-bundle ###
1919

2020
###> symfony/mailer ###

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ci-build
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [opened, synchronize]
7+
8+
jobs:
9+
build-ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Setup node
13+
run: curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - && sudo apt-get install -y nodejs
14+
- name: Setup php 7.4
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '7.4'
18+
extensions: curl, gd, intl, json, mbstring, readline, xml, zip
19+
- name: Setup yarn
20+
run: |
21+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&
22+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
23+
sudo apt-get update && sudo apt-get install yarn
24+
- name: Install docutils
25+
run: sudo apt-get update && sudo apt-get install python-docutils
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
- uses: shogo82148/actions-setup-mysql@v1
29+
with:
30+
mysql-version: '5.6'
31+
user: 'symfony'
32+
password: 'symfony'
33+
- name: Prepare database
34+
run: mysql -e "create database phpofby DEFAULT CHARACTER SET utf8; grant all on phpofby.* to 'symfony'@'localhost' identified by 'symfony';" -uroot -h127.0.0.1
35+
- name: Build
36+
run: php phing.phar build-ci

0 commit comments

Comments
 (0)