forked from XRPL-Labs/XUMM-SDK-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 883 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
XUMM_TEST_BASE_URI: 'http://localhost:8080'
XUMM_API_KEY: 'aaaaaaaa-bbbb-cccc-dddd-1234567890ab'
XUMM_API_SECRET: 'cbbbbbbb-aaaa-cccc-dddd-1234567890ab'
jobs:
build:
runs-on: ubuntu-latest
services:
mock-api:
image: synon/xumm-mock-api:1.2
ports:
- '8080:3000'
mock-ws:
image: synon/php-ws-server
ports:
- '8081:8081'
steps:
- uses: actions/checkout@v2
- name: Setup PHP Action
uses: shivammathur/setup-php@2.24.0
- name: Install dependencies
run: composer install
- name: Run phpcs
run: make test-cs
- name: Run unit tests
run: make test-unit
- name: Run behat tests
run: make test-acceptance-ci