Skip to content

Commit

Permalink
Align Github Actions workflows. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Feb 7, 2024
1 parent 87fb718 commit 85b60b6
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 30 deletions.
30 changes: 30 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'

template: |
## General Changes
$CHANGES
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'

version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
23 changes: 19 additions & 4 deletions .github/workflows/pr.yaml → .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
---
name: Build and Test

on:
pull_request:
branches:
- master
release:
types:
- published
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.21
uses: actions/setup-go@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
go-version-file: 'go.mod'
cache: false

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -p bugs -p unused
args: --build-tags integration -p bugs -p unused -D protogetter --timeout=5m

- name: Test
run: |
make test
- name: Report Coverage to PR
run: |
bash <(curl -s https://codecov.io/bash)
if: github.event_name == 'pull_request'
26 changes: 0 additions & 26 deletions .github/workflows/master.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Release Drafter Action

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 85b60b6

Please sign in to comment.