Skip to content

Commit 0d0b71e

Browse files
authored
Merge pull request #4 from tungbq/test-new-code-only
tst
2 parents 5a4c312 + f4e9a3f commit 0d0b71e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/golang-lint.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: golangci-lint
22
on:
33
pull_request:
4+
workflow_dispatch:
45

56
permissions:
67
contents: read
78
# Optional: allow read access to pull request. Use with `only-new-issues` option.
8-
# pull-requests: read
9+
pull-requests: read
910

1011
jobs:
1112
golangci:
@@ -23,4 +24,5 @@ jobs:
2324
# Require: The version of golangci-lint to use.
2425
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
2526
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
26-
version: v1.53
27+
version: latest
28+
only-new-issues: true

internal/osutil/file_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package osutil
22

33
import (
44
"bytes"
5-
"io/ioutil"
5+
"io/ioutil" //check this
66
"os"
77
"path/filepath"
88
"runtime"
@@ -19,6 +19,8 @@ func validFileContent(t *testing.T, filename string, content []byte) {
1919
}
2020
}
2121

22+
// Testing - simulate bugs
23+
2224
func TestWriteFile(t *testing.T) {
2325
t.Run("write file", func(t *testing.T) {
2426
tempDir := t.TempDir()

0 commit comments

Comments
 (0)