Skip to content

Fix tg code examples in Readme as NewTelegram return err #48

Fix tg code examples in Readme as NewTelegram return err

Fix tg code examples in Readme as NewTelegram return err #48

Workflow file for this run

name: build
on:
push:
branches:
tags:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set up go
uses: actions/setup-go@v4
with:
go-version: "1.20"
id: go
- name: checkout
uses: actions/checkout@v2
- name: build and test
run: |
go get -v
go test -race -timeout=60s -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...
go build -race
env:
TZ: "America/Chicago"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: submit coverage
run: |
go install github.com/mattn/goveralls@latest
goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}