Skip to content

Commit

Permalink
configure readme and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Galen Liu committed Nov 26, 2024
1 parent f117934 commit d4639ac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Set up Go
uses: actions/setup-go@v5

- name: Build
run: go build -v ./...
- name: Install dependencies
run: go mod download

- name: Test
run: go test -v ./...
- name: Run tests
run: go test -coverprofile=coverage.txt

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[![Build Status](https://travis-ci.org/liugang/gojson.svg?branch=master)](https://travis-ci.org/liugang/gojson)
# gojson

[![GitHub Actions](https://github.com/liugang/gojson/actions/workflows/go.yml/badge.svg)](https://github.com/liugang/gojson/actions)
[![codecov](https://codecov.io/gh/liugang/gojson/branch/master/graph/badge.svg)](https://codecov.io/gh/liugang/gojson)
[![Go Report Card](https://goreportcard.com/badge/github.com/liugang/gojson)](https://goreportcard.com/report/github.com/liugang/gojson)
[![GoDoc](https://godoc.org/github.com/liugang/gojson?status.svg)](https://godoc.org/github.com/liugang/gojson)

gojson
======

Expand Down

0 comments on commit d4639ac

Please sign in to comment.