diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 34bb022..74216fb 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,9 +11,13 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - name: Setup Go + uses: actions/setup-go@v3.0.0 + with: + go-version: 1.19.0 - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: latest - args: --disable lll --disable interfacer --disable gochecknoglobals \ No newline at end of file + args: -v --disable lll --disable interfacer --disable gochecknoglobals \ No newline at end of file diff --git a/main_test.go b/main_test.go index 63ce9b3..2659484 100644 --- a/main_test.go +++ b/main_test.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "io/ioutil" "log" "os" "path" @@ -101,7 +100,7 @@ func TestPublicGithubRepositoryBackupWithBackupsToKeepAsOne(t *testing.T) { // run require.NoError(t, run()) // check only one bundle remains - files, err := ioutil.ReadDir(dfDir) + files, err := os.ReadDir(dfDir) require.NoError(t, err) var found int for _, f := range files { @@ -135,7 +134,7 @@ func TestPublicGithubRepositoryBackupWithBackupsToKeepUnset(t *testing.T) { // run require.NoError(t, run()) // check both bundles remain - files, err := ioutil.ReadDir(dfDir) + files, err := os.ReadDir(dfDir) require.NoError(t, err) require.Len(t, files, 2) // reset