Files
WPIQ/.github/workflows/main.yml
2020-10-27 14:37:09 +01:00

39 lines
1.0 KiB
YAML

name: CI
on:
push:
branches:
- updating-configuration
pull_request:
branches:
- master
release:
types: [published]
schedule:
- cron: '0 0 * * 0'
jobs:
build:
strategy:
matrix:
platform: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Prepare VM
run: |
unset LANG
sudo apt update -qq
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get purge --option=Dpkg::options::=--force-all --assume-yes graphviz* redis* php* mysql*
sudo apt-get install -qq git ccze tree
sudo apt-get -qq autoremove --purge
sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > $HOME/.gitconfig'
- name: Install WordOps
run: sudo timeout 1800 bash install --travis
- name: Run tests
run: sudo timeout 1800 bash tests/travis.sh --actions