Skip to content
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
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Generate code
run: python generate-code.py

- name: run codecov.sh
run: bash script/codecov.sh
- name: run test.sh
run: bash script/test.sh

- name: go vet
run: go vet $(go list ./... | grep -v /examples/)
Expand All @@ -54,9 +54,6 @@ jobs:
popd
done

- name: Publish to codecov.io
run: bash <(curl -s https://codecov.io/bash)

pinact:
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ When you update code, be sure to check consistencies between generated code and

### Add unit tests

We use Go's built-in testing framework. To run all tests with race detection and coverage reporting: `bash script/codecov.sh`
We use Go's built-in testing framework. To run all tests with race detection `bash script/test.sh`

Especially for bug fixes, please follow this flow for testing and development:
1. Write a test before making changes to the library and confirm that the test fails.
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# LINE Messaging API SDK for Go

[![Build Status](https://github.com/line/line-bot-sdk-go/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/line/line-bot-sdk-go/actions)
[![codecov](https://codecov.io/gh/line/line-bot-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/line/line-bot-sdk-go)
[![Go Reference](https://pkg.go.dev/badge/github.com/line/line-bot-sdk-go/v8/linebot.svg)](https://pkg.go.dev/github.com/line/line-bot-sdk-go/v8/linebot)
[![Go Report Card](https://goreportcard.com/badge/github.com/line/line-bot-sdk-go)](https://goreportcard.com/report/github.com/line/line-bot-sdk-go)

Expand Down
12 changes: 0 additions & 12 deletions script/codecov.sh

This file was deleted.

4 changes: 4 additions & 0 deletions script/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
go test -v -race ./...