Skip to content

Commit 5277d57

Browse files
author
Steffen Giers
committed
chore: refactor gitlab integration to github actions
Closes #25
1 parent feb1774 commit 5277d57

File tree

4 files changed

+281
-246
lines changed

4 files changed

+281
-246
lines changed

.github/workflows/php.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PHP Composer
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Validate composer.json and composer.lock
14+
run: composer validate
15+
16+
- name: Install dependencies
17+
run: composer install --prefer-dist --no-progress --no-suggest
18+
19+
- name: Run test suite
20+
run: composer run-script test

.gitlab-ci.yml

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

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
"require-dev": {
2727
"phpunit/phpunit": "^8",
2828
"spatie/phpunit-watcher": "dev-master"
29+
},
30+
"scripts": {
31+
"test": "phpunit --bootstrap vendor/autoload.php tests"
2932
}
3033
}

0 commit comments

Comments
 (0)