Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build
run: make build-all

- name: Test
run: make test

- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
36 changes: 27 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Release

on:
push:
tags:
- 'v*'
workflow_call:
workflow_dispatch:
inputs:
tag:
description: 'Git tag to release'
required: true
type: string
bump:
description: 'Version bump type'
required: false
type: choice
options:
- patch
- minor
- major
default: 'patch'

permissions:
contents: write
Expand All @@ -22,7 +24,14 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.tag || github.ref }}

- name: Bump version and push tag
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: ${{ github.event.inputs.bump }}
tag_prefix: v

- name: Set up Go
uses: actions/setup-go@v5
Expand All @@ -37,3 +46,12 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Summary
run: |
echo "## Release ${{ steps.tag.outputs.new_tag }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Previous tag:** ${{ steps.tag.outputs.previous_tag }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Changelog" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.tag.outputs.changelog }}" >> $GITHUB_STEP_SUMMARY
52 changes: 0 additions & 52 deletions .github/workflows/tag-release.yaml

This file was deleted.

Loading