Skip to content

Commit c66fed8

Browse files
Add Github Tests
1 parent 0f26d2b commit c66fed8

File tree

2 files changed

+53
-79
lines changed

2 files changed

+53
-79
lines changed

.github/workflows/tests.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI Workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php-version: ['8.1']
11+
sdk: [Android11Java8, Android11Java11, Android12Java8, Android12Java11, CLINode14, CLINode16, DartBeta, DartStable, Deno1193, Deno1303, DotNet60, DotNet70, FlutterStable, FlutterBeta, Go112, Go118, KotlinJava8, KotlinJava11, KotlinJava17, Node12, Node14, Node16, PHP74, PHP80, Python38, Python39, Python310, Ruby27, Ruby30, Ruby31, AppleSwift55, Swift55, WebChromium, WebNode]
12+
13+
container:
14+
image: php:${{ matrix.php-version }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Before Install
21+
run: |
22+
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
23+
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
24+
fi
25+
26+
- name: Install
27+
run: |
28+
docker --version
29+
composer install
30+
31+
- name: Lint
32+
if: matrix.sdk == 'Lint'
33+
run: |
34+
composer lint
35+
36+
- name: Run Tests
37+
run: |
38+
composer test tests/${{ matrix.sdk }}Test.php
39+
40+
lint:
41+
runs-on: ubuntu-latest
42+
container:
43+
image: php:8.1
44+
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v2
48+
49+
- name: Install
50+
run: composer install
51+
52+
- name: Lint
53+
run: composer lint

.travis.yml

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

0 commit comments

Comments
 (0)