Skip to content

Commit

Permalink
Merge pull request #11 from m-Peter/add-http-and-web-socket-handlers
Browse files Browse the repository at this point in the history
Add `HTTP` and `WebSocket` handlers for `JSON-RPC` server
  • Loading branch information
m-Peter authored Jan 10, 2024
2 parents 7156cee + aaf3ba3 commit 8ffa586
Show file tree
Hide file tree
Showing 13 changed files with 1,910 additions and 501 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run CI
run: make ci
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.PHONY: test
test:
# test all packages
go test -cover -parallel 8 ./...

.PHONY: check-tidy
check-tidy:
go mod tidy
git diff --exit-code

.PHONY: ci
ci: check-tidy test
Loading

0 comments on commit 8ffa586

Please sign in to comment.