mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
922 B
45 lines
922 B
name: Tests
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'tmp-*'
|
|
pull_request:
|
|
branches-ignore:
|
|
- 'tmp-*'
|
|
|
|
jobs:
|
|
tests:
|
|
name: CI
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
mysql:
|
|
image: 'mysql:5.7'
|
|
env:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 1
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
ports:
|
|
- 3306:3306
|
|
reids:
|
|
image: 'redis'
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
ports:
|
|
- 6379:6379
|
|
steps:
|
|
- name: Set up Go 1.16
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.16'
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
go mod download
|
|
|
|
- name: Run test cover
|
|
run: sh helper/test-cover.sh
|
|
|