Skip to content

Commit 5d30a9d

Browse files
authored
Merge pull request #16 from duboism/github_actions_master
Convert Travis tests to GitHub actions
2 parents 05c7c69 + ca1c19c commit 5d30a9d

File tree

3 files changed

+49
-55
lines changed

3 files changed

+49
-55
lines changed

.github/workflows/main.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Main
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
- release/**
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
- release/**
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
run:
22+
runs-on: ${{ matrix.operating-system }}
23+
strategy:
24+
matrix:
25+
operating-system: ['ubuntu-latest', 'macos-latest'] #, 'windows-latest']
26+
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
27+
steps:
28+
- name: Get source code
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-versions }}
36+
coverage: none
37+
ini-values: post_max_size=256M, max_execution_time=180
38+
- run: sudo pear list
39+
- run: sudo pear channel-update pear.php.net
40+
- run: sudo pear upgrade --force pear/pear
41+
- run: sudo pear list
42+
- run: sudo pear install --force package.xml
43+
- run: sudo pear list
44+
- run: sudo pear package
45+
- run: sudo pear package-validate
46+
- run: sudo pear install --force *.tgz
47+
- run: sudo pear list
48+
- run: composer install
49+
- run: ./vendor/bin/phpunit tests

.travis.yml

-26
This file was deleted.

phpunit.xml.dist

-29
This file was deleted.

0 commit comments

Comments
 (0)