Skip to content

Commit

Permalink
Merge 4959b9b into 34277cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsawa0515 committed May 3, 2021
2 parents 34277cc + 4959b9b commit e1d77d8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 22 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
go test ./... -v
go test -race ./... -v
- name: Calc coverage
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.5
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.16.x'
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.16.x'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.idea
*.iml

coverage.out
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/ohsawa0515/aws-sdk-go-test.svg?branch=master)](https://travis-ci.org/ohsawa0515/aws-sdk-go-test) [![Coverage Status](https://coveralls.io/repos/github/ohsawa0515/aws-sdk-go-test/badge.svg?branch=master)](https://coveralls.io/github/ohsawa0515/aws-sdk-go-test?branch=master)

aws-sdk-go-test
===

![Test Status]((https://github.com/ohsawa0515/aws-sdk-go-test/actions/workflows/test.yml/badge.svg)) [![Coverage Status](https://coveralls.io/repos/github/ohsawa0515/aws-sdk-go-test/badge.svg?branch=master)](https://coveralls.io/github/ohsawa0515/aws-sdk-go-test?branch=master)

Test tips collection of using the aws-sdk-go.

0 comments on commit e1d77d8

Please sign in to comment.