Skip to content

Commit

Permalink
🐎 ci: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Jul 12, 2023
1 parent 868e457 commit c910756
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: "🔧 build"
include: "scope"
27 changes: 27 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Dependabot auto-merge

on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Enable auto-merge for Dependabot PRs
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
33 changes: 33 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: golangci-lint

on:
push:
tags-ignore:
- '**'
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Build source code
run: go build ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
only-new-issues: true
55 changes: 44 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,56 @@ checksum:
snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "README"
- Merge pull request
- Merge branch

brews:
- repository:
owner: shurco
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
homepage: https://github.com/shurco/goclone
description: Website Cloner - Utilizes powerful Go routines to clone websites to your computer within seconds.
description: "goclone - clone websites in a matter of seconds."
license: "MIT"

upx:
- enabled: false

changelog:
sort: asc
filters:
exclude:
- init
- "^.*?ci:"
- "^.*?test:"
- "^.*?build(deps):"
- "^.*?build:"
- "README"
- "Up"
- "merge conflict"
- Bump
- Small fix
- Update
- Updating
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999

0 comments on commit c910756

Please sign in to comment.