Skip to content

Commit

Permalink
#418 Use Ubuntu 20.04 for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
j3nsch committed Sep 27, 2021
1 parent ec37919 commit 2a28985
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
name: PHP Composer

on: [push]
on:
push:

pull_request:
types: [ assigned, opened, synchronize, reopened ]

schedule:
- cron: '30 1 * * *'

jobs:
build:

runs-on: ubuntu-16.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Change to PHP7.0
run: sudo update-alternatives --set php /usr/bin/php7.0
- name: Setup PHP 7.1
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'

- name: Install Composer and Dependencies
run: sudo apt-get update && curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install
Expand All @@ -22,8 +31,11 @@ jobs:
- name: Solr
run: sudo bash bin/install_solr_docker.sh

- name: MySQL
run: sudo bash bin/install_mysql_docker.sh
- name: Start MySQL
run: sudo systemctl start mysql.service

- name: Prepare database
run: export MYSQL_PWD=root && mysql --default-character-set=utf8 -h 'localhost' -P '3306' -u 'root' -v -e "CREATE DATABASE IF NOT EXISTS opusdb DEFAULT CHARACTER SET = UTF8 DEFAULT COLLATE = UTF8_GENERAL_CI; CREATE USER 'opus4admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; GRANT ALL PRIVILEGES ON opusdb.* TO 'opus4admin'@'localhost'; CREATE USER 'opus4'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; GRANT SELECT,INSERT,UPDATE,DELETE ON opusdb.* TO 'opus4'@'localhost'; FLUSH PRIVILEGES;"

- name: Prepare
run: ant prepare-workspace prepare-test-workspace prepare-javascript prepare-config lint reset-testdata -DdbUserPassword=root -DdbAdminPassword=root
Expand Down

0 comments on commit 2a28985

Please sign in to comment.