Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
Update common CI files to latest version from networkservicemesh/cmd-…
Browse files Browse the repository at this point in the history
…template@master networkservicemesh/cmd-template#19

networkservicemesh/cmd-template PR link: networkservicemesh/cmd-template#19

networkservicemesh/cmd-template commit message:
commit 2323459907e6dca98336d2a607b239ced0cc1a5b
Author: Tigran Manasyan <52424622+tigrulya-exe@users.noreply.github.com>
Date:   Tue Sep 8 21:18:47 2020 +0700

    Added cmd-exclude-prefixes-k8s repository to repositories list (#19)

    Signed-off-by: Tigran Manasyan <manasyan_tigran@mail.ru>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
  • Loading branch information
NSMBot committed Sep 8, 2020
1 parent 674e875 commit ed98a08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Restrict dependencies on github.com/networkservicemesh/*
env:
ALLOWED_REPOSITORIES: "sdk, api, sdk-k8s, sdk-vppagent, sdk-sriov"
run: |
for i in $(grep github.com/networkservicemesh/ go.mod |grep -v '^module' | sed 's;.*\(github.com\/networkservicemesh\/[a-zA-z\/]*\).*;\1;g' | sort -u);do
if [ "${i}" != "github.com/networkservicemesh/sdk-vppagent" ] && [ "${i}" != "github.com/networkservicemesh/sdk" ] && [ "${i}" != "github.com/networkservicemesh/api" ] && [ "${i}" != "github.com/networkservicemesh/sdk-k8s" && [ "${i}" != "github.com/networkservicemesh/sdk-sriov" ]]; then
echo Dependency on "${i}" is forbidden
exit 1
fi
if ! [ "$(echo ${ALLOWED_REPOSITORIES}| grep ${i#github.com/networkservicemesh/})" ]; then
echo Dependency on "${i}" is forbidden
exit 1
fi;
done
checkgomod:
Expand Down Expand Up @@ -158,7 +160,7 @@ jobs:
- name: Build container
run: docker build .
- name: Run tests
run: docker run --privileged --rm $(docker build -q . --target test)
run: docker run --privileged --rm $(docker build -q . --target test)
- name: Find merged PR
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: jwalton/gh-find-current-pr@v1
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ linters-settings:
golint:
min-confidence: 0.8
goimports:
local-prefixes: github.com/networkservicemesh/cmd-forwarder-vppagent
local-prefixes: github.com/networkservicemesh
gocyclo:
min-complexity: 15
maligned:
Expand Down

0 comments on commit ed98a08

Please sign in to comment.