Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit d48a395

Browse files
authored
Create ci.yml
1 parent 586c4f8 commit d48a395

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
run:
6+
runs-on: ${{ matrix.os }}
7+
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest]
11+
php: ['7.3', '7.4', '8.0']
12+
13+
name: PHP ${{ matrix.php }} Test on ${{ matrix.os }}
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{matrix.php}}
23+
24+
- name: Install dependencies
25+
uses: php-actions/composer@v5
26+
with:
27+
args: --prefer-source --no-interaction
28+
29+
- name: Run composer test script
30+
uses: php-actions/composer@v5
31+
with:
32+
command: test

0 commit comments

Comments
 (0)