Skip to content

Merge pull request #4 from UiP9AV6Y/feature/prometheus_collector #17

Merge pull request #4 from UiP9AV6Y/feature/prometheus_collector

Merge pull request #4 from UiP9AV6Y/feature/prometheus_collector #17

Workflow file for this run

---
name: Test
on:
push:
branches: [ master ]
paths:
- '.github/workflows/*.yml'
- '**/go.mod'
- '**/go.sum'
- '**/*.go'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/*.yml'
- '**/go.mod'
- '**/go.sum'
- '**/*.go'
jobs:
test-library:
name: Test (Library)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
run: go test -v ./...
lint-library:
name: Lint (Library)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
test-tools:
name: Test (Tools)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
- name: Test
working-directory: tools
run: go test -v ./...
lint-tools:
name: Lint (Tools)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
working-directory: tools
build-tools:
name: Build (Tools)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
- name: Build
working-directory: tools
run: go build -v ./...
test-prometheus:
name: Test (Prometheus)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'prometheus/go.mod'
- name: Test
working-directory: prometheus
run: go test -v ./...
lint-prometheus:
name: Lint (Prometheus)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'prometheus/go.mod'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
working-directory: prometheus