Skip to content

Commit

Permalink
Set up go with go-version-file
Browse files Browse the repository at this point in the history
  • Loading branch information
ypjama committed Oct 17, 2023
1 parent 90cf213 commit af20ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Go
name: go

on:
push:
Expand All @@ -20,7 +20,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
cache: true
go-version-file: 'go.mod'

- name: Install coverage tools
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
cache: true
go-version-file: 'go.mod'

- name: Import GPG key
id: import_gpg
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# conflictless-keepachangelog

[![Go Test Status](https://github.com/ypjama/conflictless-keepachangelog/workflows/Go/badge.svg)](https://github.com/ypjama/conflictless-keepachangelog/actions/workflows/go.yml)
[![Go Test Status](https://github.com/ypjama/conflictless-keepachangelog/workflows/go/badge.svg)](https://github.com/ypjama/conflictless-keepachangelog/actions/workflows/go.yml)
[![codecov](https://codecov.io/gh/ypjama/conflictless-keepachangelog/graph/badge.svg?token=9Q4JK8VNPO)](https://codecov.io/gh/ypjama/conflictless-keepachangelog)
[![GitHub release](https://img.shields.io/github/v/release/ypjama/conflictless-keepachangelog.svg)](https://github.com/ypjama/conflictless-keepachangelog/releases/latest)

Expand Down

0 comments on commit af20ba1

Please sign in to comment.