fix: meshd watch replays full event history on start (#24) #50
This file contains hidden or 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
| name: CI | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Check formatting | |
| run: test -z "$(gofmt -l $(git ls-files '*.go'))" | |
| - name: Run Go vet | |
| run: go vet ./... | |
| - name: Run Go tests | |
| run: go test ./... | |
| - name: Build binary | |
| run: go build ./cmd/meshd | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Generate coverage profile | |
| run: go test -coverpkg=./... -coverprofile=cover.out ./... | |
| - name: Print coverage summary | |
| run: go tool cover -func=cover.out | |
| - name: Upload coverage profile | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cover.out | |
| path: cover.out |