Skip to content

chore(deps): update actions/setup-go action to v5 #452

chore(deps): update actions/setup-go action to v5

chore(deps): update actions/setup-go action to v5 #452

Workflow file for this run

name: ci
on: [ push, pull_request ]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: go build ./...
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Benchmark
run: go test -bench=. ./...
release:
name: release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.github_token }}
skip-version-file: "true"
skip-on-empty: "false"
- name: Create Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}