Skip to content

Commit 54b9337

Browse files
authored
Merge pull request msyk#82 from matsuo/update-workflow-files-for-github-actions
Update workflow files and remove unnecessary dockerfiles for CI
2 parents 9f87dbe + 487504c commit 54b9337

10 files changed

Lines changed: 23 additions & 187 deletions

.github/workflows/php-7.2.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-7.3.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-7.4.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-8.0.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-8.1.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-8.2.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-8.3.dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/php-src.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Test with php-src
22

33
on:
44
pull_request:
5+
branches: [ 'master', 'main' ]
56
workflow_dispatch:
67
schedule:
78
- cron: '0 9 7,14,21,28 * *'
@@ -14,7 +15,7 @@ jobs:
1415
matrix:
1516
php: [ '8.1', '8.2', '8.3', '8.4' ]
1617
steps:
17-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18+
- uses: actions/checkout@v4
1819
- name: Run docker compose
1920
shell: bash
2021
run: |

.github/workflows/php.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,39 @@ name: Test
22

33
on:
44
push:
5+
branches:
6+
- "*"
57
pull_request:
8+
branches: [ 'master', 'main' ]
69
workflow_dispatch:
710
schedule:
811
- cron: '0 9 15 * *'
912

1013
jobs:
1114
test:
1215
name: Test
13-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
17+
env:
18+
PHP_EXTENSIONS: mbstring, json, bcmath, zip, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, exif, gd, ldap, fileinfo
1419
strategy:
1520
matrix:
21+
os: [ ubuntu-latest, windows-latest ]
1622
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
1723
steps:
18-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19-
- name: Run docker-compose
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Install PHP with extensions
28+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
29+
with:
30+
php-version: ${{ matrix.php-version }}
31+
coverage: pcov
32+
extensions: ${{ env.PHP_EXTENSIONS }}
33+
34+
- name: Prepare environment
2035
shell: bash
21-
run: |
22-
cp .github/workflows/php-${{ matrix.php }}.dockerfile Dockerfile
23-
docker-compose up -d
24-
sleep 30
36+
run: composer install
2537

2638
- name: Run testing
2739
shell: bash
28-
run: |
29-
sleep 30
30-
docker-compose exec -T web sh -c "cd / && composer test"
40+
run: composer test

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: run-phpstan
1+
name: PHPStan
22

33
on:
44
push:

0 commit comments

Comments
 (0)