Skip to content

Commit b38a058

Browse files
committed
Merge branch 'master' of github.com:ekalinin/github-markdown-toc.go
2 parents 01e0094 + f544b29 commit b38a058

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/go.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- '**/*.md'
9+
- 'Makefile'
10+
pull_request:
11+
branches:
12+
- master
13+
paths-ignore:
14+
- '**/*.md'
15+
- 'Makefile'
16+
17+
jobs:
18+
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: 1.17
28+
29+
- name: Lint
30+
uses: golangci/golangci-lint-action@v2
31+
32+
- name: Build
33+
run: go build -v ./...
34+
35+
- name: Test & Coverage
36+
run: go test -v -coverprofile=coverage.out -covermode=atomic
37+
38+
- name: Upload coverage to Codecov
39+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)