Skip to content

Commit caa9783

Browse files
committed
workflow added
1 parent 8408dec commit caa9783

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
testsuite_php_7_4:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Setup PHP 7.4 Environment
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '7.4'
18+
extensions: intl, mbstring, simplexml, pdo, pdo_mysql
19+
coverage: pcov
20+
21+
- name: Install Packages in the temporary container
22+
working-directory: ./
23+
run: composer install
24+
25+
- name: Run tests with PHP 7.4
26+
working-directory: ./
27+
run: |
28+
export CODECOVERAGE=1
29+
vendor/bin/phpunit --verbose tests
30+
31+
testsuite_php_8_1:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
37+
- name: Setup PHP 8.1 Environment
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: '8.1'
41+
extensions: intl, mbstring, simplexml, pdo, pdo_mysql
42+
coverage: pcov
43+
44+
- name: Install Packages in the temporary container
45+
working-directory: ./
46+
run: composer install
47+
48+
- name: Run tests with PHP 8.1
49+
working-directory: ./
50+
run: |
51+
export CODECOVERAGE=1
52+
vendor/bin/phpunit --verbose tests

0 commit comments

Comments
 (0)