Skip to content

Commit

Permalink
Update GitHub workflows (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba committed Jun 9, 2024
1 parent 330da04 commit 13c3ec5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: generate

on:
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
release:
strategy:
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/tests.yaml → .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: tests
name: go
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -13,25 +10,17 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
check-latest: true
cache: true
go-version-file: go.mod
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
args: --timeout 3m0s
unit:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
check-latest: true
cache: true
go-version-file: go.mod
- name: Run tests
run: make test
7 changes: 1 addition & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -19,9 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
check-latest: true
cache: true
go-version-file: go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down

0 comments on commit 13c3ec5

Please sign in to comment.