Skip to content

Commit 9bc5605

Browse files
authored
Merge pull request #2 from GromNaN/github-actions
Add GitHub Actions
2 parents 01f44ee + 6f15694 commit 9bc5605

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Diff for: .github/workflows/ci.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
tests:
11+
name: "Tests [PHP ${{ matrix.php }} - ${{ matrix.dependencies }}]"
12+
runs-on: ubuntu-latest
13+
14+
services:
15+
s3:
16+
image: asyncaws/testing-s3
17+
ports:
18+
- 4569:4569
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
php:
24+
- "7.4"
25+
- "8.0"
26+
- "8.1"
27+
dependencies:
28+
- highest
29+
include:
30+
- php: 7.4
31+
dependencies: 'lowest'
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
37+
# https://github.com/shivammathur/setup-php
38+
- name: Setup PHP
39+
uses: "shivammathur/setup-php@v2"
40+
with:
41+
php-version: "${{ matrix.php }}"
42+
tools: phpunit-bridge
43+
extensions: mbstring
44+
coverage: xdebug
45+
46+
# https://github.com/ramsey/composer-install
47+
- name: Composer
48+
uses: "ramsey/composer-install@v2"
49+
with:
50+
dependency-versions: "${{ matrix.dependencies }}"
51+
composer-options: "--optimize-autoloader"
52+
53+
- name: Run tests
54+
run: vendor/bin/simple-phpunit --coverage-text

0 commit comments

Comments
 (0)