-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.1 KB
/
docker-build.yml
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
name: Build for PHP-FPM
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
APP_RUNTIME: "fpm"
APP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || 'latest' }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build
run: make build
- name: Test with MariaDB
run: make test
env:
DB_DRIVER: "pdo-mysql"
DB_HOST: "mariadb"
- name: Cleanup after MariaDB tests
run: make clean
if: always()
env:
DB_DRIVER: "pdo-mysql"
DB_HOST: "mariadb"
- name: Test with PostgreSQL
run: make test
env:
DB_DRIVER: "pdo-pgsql"
DB_HOST: "postgres"
- name: Cleanup after PostgreSQL tests
run: make clean
if: always()
env:
DB_DRIVER: "pdo-pgsql"
DB_HOST: "postgres"
- name: Publish
run: make publish
if: github.ref_type == 'tag' || github.ref_name == 'master'