Skip to content

Commit 2f79b92

Browse files
author
Roman Bylbas
authored
Merge pull request #12 from make-software/ci
Added ci.yml to github workflows
2 parents 600801b + 2b6e3d7 commit 2f79b92

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '7.4'
22+
23+
- uses: actions/checkout@v3
24+
25+
- name: Install dependencies
26+
run: composer install --prefer-dist --no-progress
27+
28+
- name: Run test suite
29+
run: composer run-script test
30+
env:
31+
CASPER_PHP_SDK_TEST_NODE_URL: "136.243.187.84:7777"

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "^9"
31+
},
32+
"scripts": {
33+
"test": "php vendor/bin/phpunit tests"
3134
}
3235
}

0 commit comments

Comments
 (0)