Skip to content

Commit

Permalink
github/workflows/main: add windows to CI (#229)
Browse files Browse the repository at this point in the history
* github/workflows/main: add windows to CI

* keep go.mod

* workflows/main: fix wd

* simplify

* Add copyright banners to missing files

* debug

* Add gitattributes for forcing lf

Should make gofmt happy.

* Remove symlink from testdata

Co-authored-by: francisco souza <[email protected]>
  • Loading branch information
fsouza and fsouza authored Apr 30, 2020
1 parent c54c2a5 commit 0e8fa76
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
os:
- macos
- ubuntu
- windows

name: lint-and-test (${{ matrix.os }}/go-${{ matrix.go_version }})
runs-on: ${{ matrix.os }}-latest
Expand All @@ -31,12 +32,13 @@ jobs:
- uses: actions/checkout@master

- name: install deps
run: |
go mod download
(
cd /tmp
env GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
)
run: go mod download

- name: install golangci-lint
run: go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
working-directory: /
env:
GO111MODULE: on

- name: run-linter
run: golangci-lint run
Expand Down
4 changes: 4 additions & 0 deletions examples/go/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 Francisco Souza. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions internal/backend/bucket.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 Francisco Souza. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package backend

import "time"
Expand Down
1 change: 0 additions & 1 deletion testdata/multi-level/some-bucket/a/root-object.txt

This file was deleted.

0 comments on commit 0e8fa76

Please sign in to comment.