Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit ab67f26

Browse files
committed
Switch to Github Actions
1 parent aa1a4f4 commit ab67f26

File tree

8 files changed

+59
-1951
lines changed

8 files changed

+59
-1951
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = true
1313

1414
[*.md]
1515
trim_trailing_whitespace = false
16+
17+
[*.yml]
18+
indent_size = 2

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
* text=auto
22

3+
/.github export-ignore
34
/docs export-ignore
45
/tests export-ignore
56
/.editorconfig export-ignore

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [7.2, 7.3, 7.4]
13+
14+
name: PHP${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
id: checkout-code
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
id: setup-php
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, soap, intl, gd, exif, iconv
27+
coverage: none
28+
29+
- name: Get Composer Cache Directory
30+
id: get-composer-cache
31+
run: |
32+
echo "::set-output name=dir::$(composer config cache-files-dir)"
33+
34+
- name: Setup Cache
35+
id: setup-cache
36+
uses: actions/cache@v2
37+
with:
38+
path: ${{ steps.get-composer-cache.outputs.dir }}
39+
key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }}
40+
41+
- name: Install dependencies
42+
id: install-deps
43+
run: composer install --no-interaction --prefer-dist --no-suggest
44+
45+
- name: Run tests
46+
id: run-tests
47+
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.phpunit.result.cache
55
/phpunit.xml
66
/.php_cs
7+
composer.lock

.travis.yml

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

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel Forge API SDK
22

3-
[![Build Status][ico-travis]][link-travis]
3+
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tzurbaev/laravel-forge-api/test?label=Tests)
44
[![StyleCI][ico-styleci]][link-styleci]
55
[![ScrutinizerCI][ico-scrutinizer]][link-scrutinizer]
66
[![Latest Version on Packagist][ico-version]][link-packagist]
@@ -155,12 +155,10 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
155155

156156
[ico-version]: https://poser.pugx.org/tzurbaev/laravel-forge-api/version?format=flat
157157
[ico-license]: https://poser.pugx.org/tzurbaev/laravel-forge-api/license?format=flat
158-
[ico-travis]: https://api.travis-ci.org/tzurbaev/laravel-forge-api.svg?branch=master
159158
[ico-styleci]: https://styleci.io/repos/84751490/shield?branch=master&style=flat
160159
[ico-scrutinizer]: https://scrutinizer-ci.com/g/tzurbaev/laravel-forge-api/badges/quality-score.png?b=master
161160

162161
[link-packagist]: https://packagist.org/packages/tzurbaev/laravel-forge-api
163-
[link-travis]: https://travis-ci.org/tzurbaev/laravel-forge-api
164162
[link-styleci]: https://styleci.io/repos/84751490
165163
[link-scrutinizer]: https://scrutinizer-ci.com/g/tzurbaev/laravel-forge-api/
166164
[link-author]: https://github.com/tzurbaev

0 commit comments

Comments
 (0)