-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (107 loc) · 3.2 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: CI
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
php82:
name: PHP 8.2
runs-on: ubuntu-24.04
services:
mongo:
image: mongo:7.0
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
postgres:
image: postgres:17
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
steps:
- name: checkout
uses: actions/checkout@v4
- name: wait for databases
run: |
while ! nc -z localhost 27017; do sleep 0.1; done
while ! nc -z localhost 5432; do sleep 0.1; done
- name: composer test
uses: docker://ghcr.io/chubbyphp/ci-php82:latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MONGODB_URI: "mongodb://root:[email protected]:27017"
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8"
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
php83:
name: PHP 8.3
runs-on: ubuntu-24.04
services:
mongo:
image: mongo:7.0
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
postgres:
image: postgres:17
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
steps:
- name: checkout
uses: actions/checkout@v4
- name: wait for databases
run: |
while ! nc -z localhost 27017; do sleep 0.1; done
while ! nc -z localhost 5432; do sleep 0.1; done
- name: composer test
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MONGODB_URI: "mongodb://root:[email protected]:27017"
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8"
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
php84:
name: PHP 8.4
runs-on: ubuntu-24.04
services:
mongo:
image: mongo:7.0
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
postgres:
image: postgres:17
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
steps:
- name: checkout
uses: actions/checkout@v4
- name: wait for databases
run: |
while ! nc -z localhost 27017; do sleep 0.1; done
while ! nc -z localhost 5432; do sleep 0.1; done
- name: composer test
uses: docker://ghcr.io/chubbyphp/ci-php84:latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MONGODB_URI: "mongodb://root:[email protected]:27017"
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8"
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- name: sonarcloud.io
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}