Skip to content

Commit f5b7113

Browse files
committed
Move to github actions
1 parent 29b65f3 commit f5b7113

2 files changed

Lines changed: 36 additions & 37 deletions

File tree

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php: ["8.4", "8.5"]
13+
composer-opts: ["", "--prefer-lowest"]
14+
container:
15+
image: skpr/php-cli:${{ matrix.php }}-v2-stable
16+
defaults:
17+
run:
18+
working-directory: /data
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Install dependencies
22+
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction --optimize-autoloader ${{ matrix.composer-opts }}
23+
- name: PHPCS
24+
run: ./bin/phpcs --colors --report=full --runtime-set testVersion 8.0-
25+
- name: PHPStan
26+
run: php -d memory_limit=-1 ./bin/phpstan analyze --no-progress
27+
- name: PHPUnit
28+
run: |
29+
mkdir -p build/phpunit
30+
./bin/phpunit --log-junit build/phpunit/results.xml
31+
- name: Upload test results
32+
uses: actions/upload-artifact@v4
33+
if: success() || failure()
34+
with:
35+
name: phpunit-results-${{ matrix.php }}-${{ matrix.composer-opts || 'default' }}
36+
path: /data/build

0 commit comments

Comments
 (0)