Skip to content

Commit

Permalink
Cleanup GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
prskr committed Mar 16, 2022
1 parent dd86250 commit c358848
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 50 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,49 @@ on:
- main
pull_request:

jobs:
permissions:
contents: write
issues: write
packages: write
pull-requests: read

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '^1.17'
id: go

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0

- name: Install Task
uses: arduino/setup-task@v1

- name: Download assets
run: task download-assets

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

- name: Build & test
run: task download-assets test
run: task test

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/golangci-lint.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ builds:
goarch: arm
goarm: '7'

release:
github:
owner: baez90
name: goveal
mode: replace

dockers:
- id: goveal
goos: linux
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tasks:
- go.sum
cmds:
- go mod download
- go mod tidy
- go mod tidy -compat=1.17

test:
sources:
Expand Down

0 comments on commit c358848

Please sign in to comment.