mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2025-02-23 15:53:16 +03:00
Move CI to GitHub Actions (#34)
This commit is contained in:
parent
953724da73
commit
92b8eb764f
39
.github/workflows/ci.yml
vendored
Normal file
39
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags-ignore:
|
||||
- '*.*'
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
MG_DEBUG: false
|
||||
DEVELOPER_NODE: 1
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: ['1.13', '1.14', '1.15']
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v github.com/google/go-querystring/query
|
||||
go get -v github.com/stretchr/testify/assert
|
||||
go get -v github.com/joho/godotenv
|
||||
go get -v github.com/h2non/gock
|
||||
cp .env.dist .env
|
||||
- name: Tests
|
||||
run: go test -v ./... -cover -coverprofile=coverage.txt -covermode=atomic
|
||||
- name: Coverage
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
16
.travis.yml
16
.travis.yml
@ -1,16 +0,0 @@
|
||||
language: go
|
||||
|
||||
env:
|
||||
global:
|
||||
- MG_DEBUG=false
|
||||
|
||||
go:
|
||||
- '1.13'
|
||||
- '1.14'
|
||||
|
||||
before_install:
|
||||
- go get -v github.com/google/go-querystring/query
|
||||
- go get -v github.com/stretchr/testify/assert
|
||||
- go get -v github.com/joho/godotenv
|
||||
|
||||
script: go test -v ./...
|
@ -1,7 +1,8 @@
|
||||
[](https://travis-ci.org/retailcrm/mg-bot-api-client-go)
|
||||
[](https://github.com/retailcrm/mg-bot-api-client-go/releases)
|
||||
[](https://golang.org/dl/)
|
||||
[](https://godoc.org/github.com/retailcrm/mg-bot-api-client-go)
|
||||
[](https://github.com/retailcrm/mg-bot-api-client-go/actions)
|
||||
[](https://codecov.io/gh/retailcrm/mg-bot-api-client-go)
|
||||
[](https://github.com/retailcrm/mg-bot-api-client-go/releases)
|
||||
[](https://golang.org/dl/)
|
||||
[](https://godoc.org/github.com/retailcrm/mg-bot-api-client-go)
|
||||
|
||||
|
||||
# Message Gateway Bot API Go client
|
||||
|
Loading…
x
Reference in New Issue
Block a user