Skip to content

Commit

Permalink
👷 Simplify CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 20, 2022
1 parent e0357be commit 63c149c
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Go

on: push

env:
GO_VERSION: 1.19

jobs:
lint:
name: Lint
Expand All @@ -15,7 +12,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ~${{ env.GO_VERSION }}
cache: true
go-version-file: go.mod
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -30,13 +28,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ~${{ env.GO_VERSION }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
cache: true
go-version-file: go.mod
- name: Test
run: go test ./...

Expand All @@ -52,13 +45,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ~${{ env.GO_VERSION }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
cache: true
go-version-file: go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand Down

0 comments on commit 63c149c

Please sign in to comment.