Skip to content

Implement Temporal metrics collector #61

Implement Temporal metrics collector

Implement Temporal metrics collector #61

Workflow file for this run

name: "Push"
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build binaries
run: go install ./cmd/...
unit:
name: "Unit Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run tests
run: go test -v ./...
integration:
name: "Integration Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Temporal CLI
uses: temporalio/setup-temporal@v0
- name: Run temporal integration tests
run: go test -v -tags integration ./temporal
staticcheck:
name: "Staticcheck"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: dominikh/staticcheck-action@v1.3.0
with:
install-go: false
errcheck:
name: "Errcheck"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go install github.com/kisielk/errcheck@latest
- run: errcheck ./...