-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.41 KB
/
build-php8.0.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: tests-php8.0
on: push
jobs:
build:
runs-on: ubuntu-latest
env:
php: 8.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php }}
- name: Build docker
run: |
cd /home/runner/work/
git clone --depth 1 https://github.com/OXID-eSales/docker-eshop-sdk.git
cd docker-eshop-sdk
make .env
sed "s/PHP_VERSION=.*/PHP_VERSION=${{ env.php }}/" -i .env
git clone --depth 1 https://github.com/OXID-eSales/oxideshop_ce.git --branch master --single-branch data/oxideshop
mkdir data/oxideshop/debug
make permissions
make data/oxideshop/vendor/
make data/oxideshop/source/config.inc.php
docker-compose up -d php
sleep 30
make reset-db
- name: Run tests
run: |
cd /home/runner/work/docker-eshop-sdk/data/oxideshop/
composer config repositories.oxid-esales/oxideshop-ee vcs https://github.com/OXID-eSales/cloud-storage-component.git
composer require oxid-esales/cloud-storage-component:dev-$(echo ${GITHUB_REF#refs/heads/})
cd /home/runner/work/docker-eshop-sdk/
docker-compose exec -T --user oxid php php vendor/bin/runtests /var/www/oxideshop/vendor/oxid-esales/cloud-storage-component/tests/