Skip to content

Commit 6def1cb

Browse files
authored
Add github action (#1)
1 parent b222d1b commit 6def1cb

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/go.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Set up Go 1.13
17+
uses: actions/setup-go@v1
18+
with:
19+
go-version: 1.13
20+
id: go
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
24+
25+
- name: Test
26+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic
27+
28+
- name: Codecov
29+
uses: codecov/codecov-action@v1.0.6

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# cache-loader
2+
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/abihf/cache-loader?label=version)
3+
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/github.com/abihf/cache-loader)
4+
![Go](https://github.com/abihf/cache-loader/workflows/Go/badge.svg)
5+
[![codecov](https://codecov.io/gh/abihf/cache-loader/branch/master/graph/badge.svg)](https://codecov.io/gh/abihf/cache-loader)
6+
27
Golang Cache Loader
38

49
## Feature

0 commit comments

Comments
 (0)