From c687536956c6ad820bb6cbb33e1d1e02dfe7c844 Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Mon, 10 May 2021 11:38:56 +0300 Subject: [PATCH] =?UTF-8?q?Add=20vendor=20license=20checker,=20update=20co?= =?UTF-8?q?decov=20action,=20add=20dependbot=20for=20=E2=80=A6=20(#1280)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .github/dependabot.yml | 6 ++++++ .github/workflows/check-licenses.yml | 26 ++++++++++++++++++++++++++ .github/workflows/main.yml | 2 +- .gitignore | 1 + .wwhrd.yml | 7 +++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/check-licenses.yml create mode 100644 .wwhrd.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..123014908 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml new file mode 100644 index 000000000..ce272b70d --- /dev/null +++ b/.github/workflows/check-licenses.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f75a7ef1b..ff8bf995a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.gitignore b/.gitignore index ba509278a..3e4d0d2a3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /package/temp-rpm-* /package/*.deb /package/*.rpm +.DS_store diff --git a/.wwhrd.yml b/.wwhrd.yml new file mode 100644 index 000000000..5afba720d --- /dev/null +++ b/.wwhrd.yml @@ -0,0 +1,7 @@ +blacklist: + - GPL-2.0 +whitelist: + - Apache-2.0 + - MIT + - BSD-3-Clause + - BSD-2-Clause