Skip to content

added WithEnvPrefix #82

added WithEnvPrefix

added WithEnvPrefix #82

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'docs/**'
- '.github/dependabot.yml'
pull_request:
branches: [ main ]
jobs:
# Lint check, using https://github.com/mgechev/revive
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Run Revive Action
uses: docker://morphy/revive-action:v2
with:
config: ./revive.toml
name: "Linter"
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
go: ['1.20']
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}