Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(actions): add tests #47

Merged
merged 2 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run tests

on: [push]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v2
with:
go-version: "1.16"

- uses: actions/cache@v2.1.4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-gomod-

- name: Run go tests
run: go test -race -failfast ./...
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
会計 freee API のクライアントライブラリ

[![Go Reference](https://pkg.go.dev/badge/github.com/layerxcom/freee-go.svg)](https://pkg.go.dev/github.com/layerxcom/freee-go)
[![test](https://github.com/LayerXcom/freee-go/actions/workflows/tests.yaml/badge.svg)](https://github.com/LayerXcom/freee-go/actions/workflows/tests.yaml)

## Usage

Expand Down