Skip to content

Commit

Permalink
Merge pull request #2 from pinzolo/github-actions
Browse files Browse the repository at this point in the history
Add github workfklow for testing
  • Loading branch information
pinzolo committed Mar 2, 2022
2 parents 3895082 + 1255320 commit 251bc1b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
- master

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run docker-compose
run: docker-compose up -d

- name: Get dependencies
run: go get -v -t -d ./...

- name: Execute tests
run: go test -v ./...
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mongotest

[![Build Status](https://travis-ci.org/pinzolo/mongotest.png)](http://travis-ci.org/pinzolo/mongotest)
[![Test](https://github.com/pinzolo/mongotest/actions/workflows/test.yml/badge.svg)](https://github.com/pinzolo/mongotest/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pinzolo/mongotest/badge.svg?branch=master)](https://coveralls.io/github/pinzolo/mongotest?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/pinzolo/mongotest)](https://goreportcard.com/report/github.com/pinzolo/mongotest)
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/pinzolo/mongotest)
Expand Down

0 comments on commit 251bc1b

Please sign in to comment.