Skip to content

Commit 7cb8f8f

Browse files
committed
ci: Replace TravisCI with GitHub Action
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 154770d commit 7cb8f8f

File tree

3 files changed

+61
-30
lines changed

3 files changed

+61
-30
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ updates:
55
schedule:
66
interval: "weekly"
77
versioning-strategy: widen
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"

.github/workflows/phpunit.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: PHPUnit
2+
3+
on: pull_request
4+
5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: phpunit-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
phpunit:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php-versions: ['8.1', '8.2', '8.3', '8.4']
20+
21+
name: PHP ${{ matrix.php-versions }}
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
27+
- name: Set up php ${{ matrix.php-versions }}
28+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
29+
with:
30+
php-version: ${{ matrix.php-versions }}
31+
coverage: none
32+
ini-file: development
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Set up dependencies
37+
run: composer i
38+
39+
- name: PHPUnit with ZSH
40+
run: SHELL=zsh vendor/bin/phpunit
41+
42+
- name: PHPUnit with BASH
43+
run: SHELL=bash vendor/bin/phpunit
44+
45+
summary:
46+
permissions:
47+
contents: none
48+
runs-on: ubuntu-latest
49+
needs: [phpunit]
50+
51+
if: always()
52+
53+
name: phpunit-summary
54+
55+
steps:
56+
- name: Summary status
57+
run: if ${{ needs.phpunit.result != 'success' }}; then exit 1; fi

.travis.yml

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

0 commit comments

Comments
 (0)