Skip to content

Commit 9579250

Browse files
committed
Travis replaced by GitHub Actions
1 parent 0fbdabd commit 9579250

File tree

4 files changed

+47
-27
lines changed

4 files changed

+47
-27
lines changed

.github/workflows/coding-style.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Coding Style
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
code-checker:
7+
name: Code Standard Checker
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: 7.2
14+
coverage: none
15+
16+
- run: composer create-project nette/code-checker temp/code-checker ^3.2 --no-progress
17+
- run: php temp/code-checker/src/code-checker.php

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php: ['5.6', '7.0', '7.1', '7.2']
11+
12+
fail-fast: false
13+
14+
name: PHP ${{ matrix.php }} tests
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: ${{ matrix.php }}
20+
extensions: json, mbstring, tokenizer
21+
coverage: none
22+
23+
- run: composer install --no-interaction --prefer-dist
24+
- run: vendor/bin/tester tests -s -C
25+
- if: failure()
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: output
29+
path: tests/**/output

.travis.yml

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

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# CzProject\SqlGenerator
33

4-
[![Build Status](https://travis-ci.org/czproject/sql-generator.svg?branch=master)](https://travis-ci.org/czproject/sql-generator)
4+
[![Tests Status](https://github.com/czproject/sql-generator/workflows/Tests/badge.svg)](https://github.com/czproject/sql-generator/actions)
55

66
<a href="https://www.patreon.com/bePatron?u=9680759"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron!" height="35"></a>
77
<a href="https://www.paypal.me/janpecha/1eur"><img src="https://buymecoffee.intm.org/img/button-paypal-white.png" alt="Buy me a coffee" height="35"></a>

0 commit comments

Comments
 (0)