Skip to content

Commit

Permalink
Merge pull request #32 from jcuga/build_fix
Browse files Browse the repository at this point in the history
Build fix
  • Loading branch information
jcuga committed Aug 20, 2023
2 parents f48fb61 + 7057367 commit 2237927
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 27 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Go

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.15', '1.21.x' ]

steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Install dependencies
run: |
go get .
go get golang.org/x/tools/cmd/cover
- name: Test library
run: |
go test -v -coverprofile=coverage.txt -covermode=count github.com/jcuga/golongpoll
go test -v github.com/jcuga/golongpoll/client
- name: Build examples
run: |
go build examples/chatbot/chatbot.go
go build examples/filepersist/filepersist.go
go build examples/stressor/server/main.go
go build examples/stressor/client/main.go
go build examples/authentication/auth.go
go build examples/microchat/microchat.go
- uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
fail_ci_if_error: true
verbose: true
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# golongpoll [![Build Status](https://travis-ci.com/jcuga/golongpoll.svg?branch=master)](https://travis-ci.com/jcuga/golongpoll) [![codecov](https://codecov.io/gh/jcuga/golongpoll/branch/master/graph/badge.svg)](https://codecov.io/gh/jcuga/golongpoll) [![GoDoc](https://godoc.org/github.com/jcuga/golongpoll?status.svg)](https://godoc.org/github.com/jcuga/golongpoll) [![Go Report Card](https://goreportcard.com/badge/jcuga/golongpoll)](https://goreportcard.com/report/jcuga/golongpoll)
Golang long polling library. Makes web pub-sub easy via HTTP long-poll servers and clients. Supports golang v1.9 and up.
# golongpoll ![build workflow](https://github.com/jcuga/golongpoll/actions/workflows/main.yml/badge.svg) [![codecov](https://codecov.io/gh/jcuga/golongpoll/branch/master/graph/badge.svg)](https://codecov.io/gh/jcuga/golongpoll) [![GoDoc](https://godoc.org/github.com/jcuga/golongpoll?status.svg)](https://godoc.org/github.com/jcuga/golongpoll) [![Go Report Card](https://goreportcard.com/badge/jcuga/golongpoll)](https://goreportcard.com/report/jcuga/golongpoll)
Golang long polling library. Makes web pub-sub easy via HTTP long-poll servers and clients.

## Resources
* [go docs](https://pkg.go.dev/github.com/jcuga/golongpoll)
Expand Down

0 comments on commit 2237927

Please sign in to comment.