Skip to content

Commit 0965e1e

Browse files
authored
Update pipeline actions (#3)
* Update pipeline actions * go 1.20 update
1 parent 0b3ef6a commit 0965e1e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: set up Go 1.x
15-
uses: actions/setup-go@v2
15+
uses: actions/setup-go@v4
1616
with:
17-
go-version: ^1.14
17+
go-version: '1.20'
18+
check-latest: true
1819
id: go
1920
- name: checkout
20-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2122
- name: modules
2223
run: go mod download
2324
- name: test

emf/logger_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package emf_test
33
import (
44
"bytes"
55
"encoding/json"
6-
"io/ioutil"
76
"os"
87
"testing"
98

@@ -220,7 +219,7 @@ func TestEmf(t *testing.T) {
220219
logger.Log()
221220

222221
println(buf.String())
223-
f, err := ioutil.ReadFile(tc.expected)
222+
f, err := os.ReadFile(tc.expected)
224223
if err != nil {
225224
t.Fatal("unable to read file with expected json")
226225
}

0 commit comments

Comments
 (0)