Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Mar 25, 2024
1 parent 2d2e450 commit 801110d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 22 deletions.
17 changes: 6 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
interval: weekly
- package-ecosystem: gomod
directory: '/'
schedule:
interval: "weekly"
interval: weekly
11 changes: 6 additions & 5 deletions .github/workflows/test.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Test Branch
name: PR check

on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:

concurrency:
Expand All @@ -18,18 +19,18 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: 'stable'
go-version-file: 'go.mod'

- uses: gotesttools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: golangci/golangci-lint-action@v3
- uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout=5m

- run: make test
- name: Run tests
run: make test

- uses: coverallsapp/github-action@v2
with:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml → .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: git fetch --force --tags
- name: Unshallow
run: git fetch --prune --unshallow

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
go-version-file: go.mod

- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
run:
timeout: 5m
skip-dirs:
- tmp

Expand Down
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
project_name: keel

release:
github:
owner: foomo
name: keel
prerelease: auto

builds:
- skip: true

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md

changelog:
use: github-native

0 comments on commit 801110d

Please sign in to comment.