Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: coverage
on:
push:
branches:
- '*'
jobs:
test:
name: Test with Coverage
runs-on: ubuntu-latest
env:
GOVER: 1.13.3
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GOVER }}
- name: Check out code
uses: actions/checkout@master
- name: Run make test-coverage
run: |
make test-coverage
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
73 changes: 73 additions & 0 deletions .github/workflows/csi-cvmfsplugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#
# Copyright The CERN.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: csi-cvmfsplugin

on:
push:
branches:
- '*'
tags:
- 'v*'
paths-ignore:
- 'CONTRIBUTING.md'
- 'README.md'
- 'docs/**'
jobs:
build:
name: Build binaries
runs-on: ubuntu-latest
env:
GOVER: 1.13.3
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GOVER }}
- name: Install golangci-lint
if: matrix.target_arch != 'arm'
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${{ env.GOROOT }}/bin" v1.21.0
- name: Check out code
uses: actions/checkout@v1
- name: Make test
run: |
make test
- name: Make build for cross platform binaries
run: |
make build-cross
- name: Make changelog
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo apt-get update
sudo apt-get install ruby
make changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release cross platform binaries
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
_dist/**
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker images
run: |
make docker
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# build directory
/output*/
/_output*/
/_output

# docker build
/deploy/docker/csi-cvmfsplugin
bin
_dist

# Emacs save files
*~
Expand All @@ -21,4 +16,4 @@ Session.vim
# git merge files
*.orig
*.patch
*.rej
*.rej
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Development

go get github.com/mitchellh/gox
go get golang.org/x/tools/cmd/goimports
174 changes: 0 additions & 174 deletions Gopkg.lock

This file was deleted.

39 changes: 0 additions & 39 deletions Gopkg.toml

This file was deleted.

2 changes: 2 additions & 0 deletions vendor/google.golang.org/grpc/LICENSE → LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -200,3 +201,4 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Loading