Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 976ff67

Browse files
authored
GitHub Actions (#9)
1 parent 6151eb6 commit 976ff67

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
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+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-18.04
11+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
12+
13+
strategy:
14+
matrix:
15+
php: ['7.0', '7.1', '7.2', '7.3', '7.4']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/[email protected]
22+
with:
23+
php-version: "${{ matrix.php }}"
24+
25+
- name: Build extension
26+
run: |
27+
phpize
28+
./configure
29+
make
30+
31+
- name: Run .phpt tests
32+
run: REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_ARGS="--show-diff" make test

.travis.yml

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

0 commit comments

Comments
 (0)