Skip to content

Commit b1554ea

Browse files
committed
Move to GitHub actions
Signed-off-by: William Desportes <[email protected]>
1 parent 28b0eb2 commit b1554ea

File tree

3 files changed

+32
-25
lines changed

3 files changed

+32
-25
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.gitattributes export-ignore
22
.gitignore export-ignore
33
.github export-ignore
4-
.travis.yml export-ignore

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test standard
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
branches:
8+
- master
9+
10+
jobs:
11+
test-ruleset:
12+
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
17+
os: [ubuntu-latest]
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Use php ${{ matrix.php-version }}
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php-version }}
24+
- name: Cache module
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.composer/cache/
28+
key: composer-cache
29+
- name: Install dependencies
30+
run: composer install
31+
- name: Run php tests
32+
run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"

.travis.yml

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

0 commit comments

Comments
 (0)