Skip to content

Commit 749cb1b

Browse files
authored
Merge pull request #20 from mdb/mdb/upgrade-actions
upgrade setup-go action
2 parents 268f838 + 512d5ac commit 749cb1b

File tree

5 files changed

+33
-11
lines changed

5 files changed

+33
-11
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
build-snapshot:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- name: Set up Go
11-
uses: actions/setup-go@v2
11+
uses: actions/setup-go@v3
1212
with:
13-
go-version: 1.18
13+
go-version-file: go.mod
1414
- name: Build
1515
run: make
1616
- name: Ensure unique version
@@ -23,11 +23,11 @@ jobs:
2323
environment:
2424
name: release
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- name: Set up Go
28-
uses: actions/setup-go@v2
28+
uses: actions/setup-go@v3
2929
with:
30-
go-version: 1.18
30+
go-version-file: go.mod
3131
- name: Create release tag
3232
run: make tag
3333
env:

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Mike Ball
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 0.1.5
1+
VERSION = 0.1.6
22
SOURCE = ./...
33

44
.PHONY: help \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/mdb/terraputs
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/goreleaser/goreleaser v0.172.1

main_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ func TestVersionArg(t *testing.T) {
103103
}
104104

105105
// These should all be ok and functionally equivalent:
106-
// terraputs -state "$(cat stateFile)"
107-
// terraputs < stateFile
108-
// cat stateFile | terraputs
106+
//
107+
// terraputs -state "$(cat stateFile)"
108+
// terraputs < stateFile
109+
// cat stateFile | terraputs
109110
func TestTerraputs(t *testing.T) {
110111
tests := []struct {
111112
command string

0 commit comments

Comments
 (0)