Skip to content

Commit 29e51b9

Browse files
author
Saveliy Yudin
committed
ci: add GitHub Actions workflow and README badges
1 parent f495fee commit 29e51b9

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: ['1.25']
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
24+
- name: Run tests
25+
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
26+
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v5
29+
with:
30+
files: coverage.out
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
33+
lint:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v5
40+
with:
41+
go-version: '1.25'
42+
43+
- name: golangci-lint
44+
uses: golangci/golangci-lint-action@v6
45+
with:
46+
version: latest

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# maxigo-client
22

3-
Idiomatic Go HTTP client for [Max Bot API](https://dev.max.ru) (OpenAPI schema v0.0.10). Zero external dependencies.
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/maxigo-bot/maxigo-client.svg)](https://pkg.go.dev/github.com/maxigo-bot/maxigo-client)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/maxigo-bot/maxigo-client)](https://goreportcard.com/report/github.com/maxigo-bot/maxigo-client)
5+
[![CI](https://github.com/maxigo-bot/maxigo-client/actions/workflows/ci.yml/badge.svg)](https://github.com/maxigo-bot/maxigo-client/actions/workflows/ci.yml)
6+
[![codecov](https://codecov.io/gh/maxigo-bot/maxigo-client/branch/main/graph/badge.svg)](https://codecov.io/gh/maxigo-bot/maxigo-client)
7+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8+
[![Go Version](https://img.shields.io/github/go-mod/go-version/maxigo-bot/maxigo-client)](https://github.com/maxigo-bot/maxigo-client)
9+
10+
Idiomatic Go HTTP client for [Max Bot API](https://dev.max.ru) (OpenAPI schema v0.0.10). Zero external dependencies.
411

512
## Why This Project?
613

0 commit comments

Comments
 (0)