mirror of https://github.com/MISP/MISP
chg: [test] Run under multiple PHP versions
parent
983c723475
commit
248550004d
|
@ -15,7 +15,13 @@ jobs:
|
|||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
php: ['7.2', '7.3', '7.4']
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
|
@ -45,17 +51,17 @@ jobs:
|
|||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
tools: pecl, composer
|
||||
extensions: mysql, mbstring, json, xml, opcache, readline, redis, gnupg, gd
|
||||
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: mysql, mbstring, json, xml, opcache, readline, redis, gd
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Install deps
|
||||
env:
|
||||
php_version: ${{ matrix.php }}
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install python3 python3-venv virtualenv python3-pip python3-dev python3-nose python3-redis python3-lxml python3-dateutil python3-msgpack libxml2-dev libzmq3-dev zlib1g-dev apache2 curl php7.4-dev php7.4-cli libapache2-mod-php libfuzzy-dev libonig4
|
||||
sudo apt-get -y install python3 python3-venv virtualenv python3-pip python3-nose python3-redis python3-lxml apache2 curl libapache2-mod-php libfuzzy-dev
|
||||
sudo pip3 install --upgrade pip setuptools requests pyzmq poetry
|
||||
sudo pip3 install --upgrade -r requirements.txt
|
||||
USER=`id -u -n`
|
||||
|
|
Loading…
Reference in New Issue