1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-05 10:20:53 +02:00
go-micro/.github/workflows/tests.yaml

34 lines
705 B
YAML
Raw Normal View History

name: Run Tests
2022-09-30 20:32:55 +02:00
on:
push:
branches:
2022-09-30 20:32:55 +02:00
- "**"
pull_request:
2022-09-30 20:32:55 +02:00
types:
- opened
- reopened
branches:
2022-09-30 20:32:55 +02:00
- "**"
jobs:
unittests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
2022-09-30 20:32:55 +02:00
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
check-latest: true
cache: true
- name: Get dependencies
run: |
go install github.com/kyoh86/richgo@latest
go get -v -t -d ./...
- name: Run tests
id: tests
run: richgo test -v -race -cover -bench=. ./...
2022-09-30 20:32:55 +02:00
env:
IN_TRAVIS_CI: yes
RICHGO_FORCE_COLOR: 1