solution: setup CI

This commit is contained in:
Igor Artamonov
2020-03-15 16:48:31 -04:00
committed by GitHub
parent 35cb35fe0a
commit 6392b6bebd
12 changed files with 382 additions and 18 deletions

34
.github/workflows/integration-test.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Integration Test
on: [push]
jobs:
container-job:
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
container: node:10.18-jessie
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check
env:
DSHACKLE_TEST_ENABLED: redis
REDIS_HOST: redis
REDIS_PORT: 6379

20
.github/workflows/unit-test.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Unit Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check