(fix): pass IOContext from WebSocket #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Unit Tests & Coverage | |
## | |
name: check | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [".", "broker/eventbridge", "broker/eventddb", "broker/events3", "broker/eventsqs", "broker/sqs", "broker/websocket"] | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
- uses: actions/checkout@v4 | |
- name: go build | |
working-directory: ${{ matrix.module }} | |
run: | | |
go build ./... | |
- name: go test | |
working-directory: ${{ matrix.module }} | |
run: | | |
go test -coverprofile=profile.cov $(go list ./... | grep -v /examples/) | |
env: | |
## GOPATH required to build serverless app inside unittest | |
GOPATH: /home/runner/work/${{ github.event.repository.name }}/go | |
- uses: shogo82148/actions-goveralls@v1 | |
continue-on-error: true | |
with: | |
working-directory: ${{ matrix.module }} | |
path-to-profile: profile.cov | |
flag-name: ${{ matrix.module }} | |
parallel: true | |
- uses: dominikh/[email protected] | |
with: | |
install-go: false | |
working-directory: ${{ matrix.module }} | |
finish: | |
needs: unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true |