Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

feat - add new plugin: mongodb/serverstatus #95

feat - add new plugin: mongodb/serverstatus

feat - add new plugin: mongodb/serverstatus #95

Workflow file for this run

name: Go
on: [push]
jobs:
test:
name: Check code quality and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Format
run: diff -u <(echo -n) <(gofmt -d ./)
- name: Suspicious constructs
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
name: Build and deploy new release
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}