Add vendor license checker, update codecov action, add dependbot for … (#1280)

* Add vendor license checker, update codecov action, add dependbot for github actions

* update gitingore, temprorary turn on check

* fix action name

* change action rules to trigger only when vendor changes

* remove obsolete line from main action
This commit is contained in:
Artem Navoiev 2021-05-10 11:38:56 +03:00 committed by GitHub
parent 229d9d6dd7
commit c687536956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 1 deletions

6
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

26
.github/workflows/check-licenses.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: license-check
on:
push:
paths:
- 'vendor'
pull_request:
paths:
- 'vendor'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@main
with:
go-version: 1.16
id: go
- name: Dependencies
run: |
go get -u github.com/frapposelli/wwhrd
- name: Code checkout
uses: actions/checkout@master
- name: Check License
run: |
wwhrd check

View file

@ -60,7 +60,7 @@ jobs:
GOOS=darwin go build -mod=vendor ./app/vmctl
CGO_ENABLED=0 GOOS=windows go build -mod=vendor ./app/vmagent
- name: Publish coverage
uses: codecov/codecov-action@v1.0.6
uses: codecov/codecov-action@v1.5.0
with:
file: ./coverage.txt

1
.gitignore vendored
View file

@ -15,3 +15,4 @@
/package/temp-rpm-*
/package/*.deb
/package/*.rpm
.DS_store

7
.wwhrd.yml Normal file
View file

@ -0,0 +1,7 @@
blacklist:
- GPL-2.0
whitelist:
- Apache-2.0
- MIT
- BSD-3-Clause
- BSD-2-Clause