Skip to content

fix: cmd to test the middleware and added features to readme #8

fix: cmd to test the middleware and added features to readme

fix: cmd to test the middleware and added features to readme #8

Workflow file for this run

name: Verify & Release
on:
pull_request:
types:
- opened
- synchronize
- edited
- closed
push:
branches:
- '*'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
env:
GOPROXY: https://proxy.golang.org
permissions:
contents: write
packages: read
statuses: write
pull-requests: write
jobs:
verify_quality:
name: Verify Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
working-directory: ./
only-new-issues: false
args: --concurrency=16 --timeout=5m --out-format=github-actions --issues-exit-code=1
skip-cache: false
skip-pkg-cache: true
verify_functionality:
name: Verify Code Functionality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Verify functionality
run: go test -v ./...
publish_release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs:
- verify_quality
- verify_functionality
runs-on: ubuntu-latest
steps:
- name: Set version env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: release-drafter/release-drafter@v6
with:
disable-autolabeler: true
name: ${{ env.RELEASE_VERSION }}
tag: ${{ env.RELEASE_VERSION }}
version: ${{ env.RELEASE_VERSION }}
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}