-
Notifications
You must be signed in to change notification settings - Fork 10
62 lines (51 loc) · 1.66 KB
/
run-tests.yml
File metadata and controls
62 lines (51 loc) · 1.66 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: run-tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1]
geoserver: ["2.20.4", "2.21.0"]
exclude:
- geoserver: "2.20.4"
php: 7.4
name: P${{ matrix.php }} - G${{ matrix.geoserver }}
env:
GEOSERVER_TAG: ${{ matrix.geoserver }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction
- name: Create Environment
run: |
docker-compose -f ./tests/docker-compose.yml up -d
php ./tests/wait.php
- name: Execute tests
env:
GEOSERVER_URL: "http://127.0.0.1:8600/geoserver/"
GEOSERVER_USER: "GEOSERVER_ADMIN_USER"
GEOSERVER_PASSWORD: "GEOSERVER_ADMIN_PASSWORD"
run: vendor/bin/phpunit
- name: Stop Environment
if: always()
run: |
docker-compose -f ./tests/docker-compose.yml down