Skip to content

Commit 93a45ec

Browse files
committed
Minor updates
- Added .phpunit.result.cache to .gitignore - Added workflow .github/workflows/php.yml
1 parent a48d9bb commit 93a45ec

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/php.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PHP CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: '8.1'
24+
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
25+
coverage: xdebug
26+
27+
- name: Validate composer.json and composer.lock
28+
run: composer validate
29+
30+
- name: Install dependencies
31+
run: composer install --prefer-dist --no-progress
32+
33+
- name: Run tests
34+
run: ./vendor/bin/phpunit
35+
36+
# If you have a deployment step, you can include it here.
37+
# This could be pushing to a Docker registry, deploying to a cloud platform, etc.
38+
# - name: Deploy...

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
22
composer.lock
3-
vendor/
3+
vendor/
4+
.phpunit.result.cache

0 commit comments

Comments
 (0)