Skip to content

lint: dont capitalize error msgs #33

lint: dont capitalize error msgs

lint: dont capitalize error msgs #33

Workflow file for this run

name: main
on:
push:
tags-ignore:
- '*'
branches:
- '**'
# TODO: break this up into separate workflows for a more idiomatic GHA setup. anything that is doing "if branch" is a candidate
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'push' && !contains(toJson(github.event.commits), '[ci skip]') && !contains(toJson(github.event.commits), '[skip ci]')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- uses: golangci/golangci-lint-action@v3
- name: install goreleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- run: make lint
shell: bash
- run: make test
shell: bash
release-test:
needs: [test]
# don't waste time running a goreleaser test build on main since we will run a full release:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: install goreleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- run: make snapshot
release:
needs: [test]
# only create a release on main builds:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: install goreleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- name: run autotag to increment version
run: |
curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
autotag
- name: build and push release artifacts
env:
GITHUB_TOKEN: ${{ secrets.BREW_GITHUB_TOKEN }}
run: |
make deps
make release