Codebase list golang-github-go-logr-logr / e438a74
Fix GH actions for Go versions, drop 1.14 Also fix a lint-warning, which ensures the tests have something to test. Tim Hockin 2 years ago
2 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
55 test:
66 strategy:
77 matrix:
8 go-versions: [ 1.14.x, 1.15.x, 1.16.x ]
8 version: [ '1.15', '1.16', '1.17' ]
99 platform: [ ubuntu-latest, macos-latest, windows-latest ]
1010 runs-on: ${{ matrix.platform }}
1111 steps:
1212 - name: Install Go
1313 uses: actions/setup-go@v2
1414 with:
15 go-version: ${{ matrix.go-version }}
15 go-version: ${{ matrix.version }}
1616 - name: Checkout code
1717 uses: actions/checkout@v2
1818 - name: Build
407407 if i > 0 {
408408 buf.WriteByte(',')
409409 }
410 k, _ := v[i].(string) // sanitize() above means no need to check success
410411 // arbitrary keys might need escaping
411 buf.WriteString(prettyString(v[i].(string)))
412 buf.WriteString(prettyString(k))
412413 buf.WriteByte(':')
413414 buf.WriteString(f.prettyWithFlags(v[i+1], 0, depth+1))
414415 }