Skip to content

Commit c358848

Browse files
committed
Cleanup GitHub actions
1 parent dd86250 commit c358848

File tree

4 files changed

+31
-50
lines changed

4 files changed

+31
-50
lines changed

.github/workflows/go.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,49 @@ on:
88
- main
99
pull_request:
1010

11-
jobs:
11+
permissions:
12+
contents: write
13+
issues: write
14+
packages: write
15+
pull-requests: read
1216

17+
jobs:
1318
build:
1419
name: Build
1520
runs-on: ubuntu-latest
1621
steps:
1722
- name: Set up Go 1.17
18-
uses: actions/setup-go@v2
23+
uses: actions/setup-go@v3
1924
with:
2025
go-version: '^1.17'
2126
id: go
2227

28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@v1
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
2335
- name: Check out code into the Go module directory
2436
uses: actions/checkout@v3
2537
with:
2638
lfs: true
39+
fetch-depth: 0
2740

2841
- name: Install Task
2942
uses: arduino/setup-task@v1
43+
44+
- name: Download assets
45+
run: task download-assets
46+
47+
- name: golangci-lint
48+
uses: golangci/golangci-lint-action@v3
49+
with:
50+
version: latest
3051

3152
- name: Build & test
32-
run: task download-assets test
53+
run: task test
3354

3455
- name: Run GoReleaser
3556
uses: goreleaser/goreleaser-action@v2

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.goreleaser.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ builds:
2121
goarch: arm
2222
goarm: '7'
2323

24+
release:
25+
github:
26+
owner: baez90
27+
name: goveal
28+
mode: replace
29+
2430
dockers:
2531
- id: goveal
2632
goos: linux

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tasks:
4040
- go.sum
4141
cmds:
4242
- go mod download
43-
- go mod tidy
43+
- go mod tidy -compat=1.17
4444

4545
test:
4646
sources:

0 commit comments

Comments
 (0)