Skip to content

Commit f4eb110

Browse files
committed
migrated travis-ci to github actions
1 parent 8ab1e99 commit f4eb110

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.gitattributes export-ignore
2+
.github export-ignore
3+
.gitignore export-ignore
4+
/test export-ignore
5+
/phpcs.xml.dist export-ignore
6+
/phpunit.xml.dist export-ignore
7+

.github/workflows/main.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php-versions: ['7.3', '7.4']
12+
name: PHP ${{ matrix.php-versions }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php-versions }}
18+
- name: Get composer cache directory
19+
id: composer-cache
20+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
21+
- uses: actions/cache@v2
22+
with:
23+
path: ${{ steps.composer-cache.outputs.dir }}
24+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: ${{ runner.os }}-composer-
26+
- name: composer install
27+
run: composer install --no-progress --prefer-dist --optimize-autoloader
28+
- name: phpunit
29+
run: php vendor/bin/phpunit
30+

.travis.yml

-14
This file was deleted.

0 commit comments

Comments
 (0)