Skip to content

docs: add tag badge

docs: add tag badge #8

name: Quality assurance
on:
- push
- workflow_dispatch
env:
GO_VERSION: '1.21.4'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install project deps
run: go mod tidy
- name: Check code style with golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Check code style with revive
uses: docker://morphy/revive-action:v2
with:
config: revive.toml
path: "./..."
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install project deps
run: go mod tidy
- name: Test
run: make test