Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Bortnikov <[email protected]>
  • Loading branch information
BROngineer committed Jun 1, 2024
1 parent cf0da63 commit a48d23c
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Features'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'bugfix'
- title: 'Maintenance'
labels:
- 'chore'
- 'dependencies'
- 'documentation'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
exclude-labels:
- 'skip-changelog'
autolabeler:
- label: 'api-change'
files:
- '**/*[!_test].go'
- label: 'tests'
files:
- '**/*_test.go'
- label: 'bugfix'
branch:
- '/fix\/.+/'
- '/bugfix\/.+/'
- label: 'feature'
branch:
- '/feature\/.+/'
- label: 'enhancement'
branch:
- '/enh\/.+/'
- label: 'chore'
branch:
- '/chore\/.+/'
- label: 'dependencies'
branch:
- '/deps\/.+/'
- '/renovate\/.+/'
- label: 'documentation'
files:
- '**/*.md'
branch:
- '/docs\/.+/'
template: |
## Changes
$CHANGES
17 changes: 17 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pre-commit

on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/[email protected]
- name: setup go
uses: actions/[email protected]
with:
go-version: 1.22.3
- name: run pre-commit checks
uses: pre-commit/[email protected]
23 changes: 23 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Drafter

on:
workflow_dispatch:
pull_request_target:
push:
branches:
- main

jobs:
release-drafter:
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: release-drafter/[email protected]
with:
disable-releaser: github.ref != 'refs/heads/main'
config-name: release-drafter.yml
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tests

on:
workflow_dispatch:
pull_request:

jobs:
run-tests:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/[email protected]
- name: setup go
uses: actions/[email protected]
with:
go-version: 1.22.3
- name: run tests
run: make test

0 comments on commit a48d23c

Please sign in to comment.