Skip to content

feat: add WebSocket connection state to the Session object #17

feat: add WebSocket connection state to the Session object

feat: add WebSocket connection state to the Session object #17

name: Test
env:
ANKH_TEST_WAIT_FOR: 500ms
ANKH_TEST_WAIT_FOR_CAPTURE: 100ms
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/test_and_coverage.yml'
- 'mk/**'
- '.gitignore'
- '.golangci.yml'
- '.header'
- 'LICENSE'
- 'Makefile'
- 'README.md'
pull_request:
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/test_and_coverage.yml'
- 'mk/**'
- '.gitignore'
- '.golangci.yml'
- '.header'
- 'LICENSE'
- 'Makefile'
- 'README.md'
permissions:
contents: read
pull-requests: read
jobs:
test:
name: Test and Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Test with Coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
name: ankh
token: ${{ secrets.CODECOV_TOKEN }}
slug: mikefero/ankh