1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

Move to GitHub Actions (#1853)

This commit is contained in:
David Sevilla Martín
2019-08-20 18:05:04 -04:00
committed by Franz Liedke
parent 085468382a
commit 3851d805f7
4 changed files with 57 additions and 110 deletions

16
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: JavaScript
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: flarum/action-build@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

41
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3]
db: ['mysql:5.7', mariadb]
services:
mysql:
image: ${{ matrix.db }}
ports:
- 13306:3306
name: PHP ${{ matrix.php }} with ${{ matrix.db }}
steps:
- uses: actions/checkout@master
- name: Select PHP version
run: sudo update-alternatives --set php $(which php${{ matrix.php }})
- name: Create MySQL Database
run: mysql -uroot -proot -e 'CREATE DATABASE flarum_test;' --port 13306
- name: Install Composer dependencies
run: composer install
- name: Setup Composer tests
run: composer test:setup
env:
DB_PORT: 13306
DB_PASSWORD: root
- name: Run Composer tests
run: composer test