-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikita Skrynnik <[email protected]>
- Loading branch information
1 parent
a131954
commit 2606e75
Showing
3 changed files
with
17 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,65 +7,20 @@ on: | |
- "release/**" | ||
jobs: | ||
yamllint: | ||
name: yamllint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
- name: Install yamllint | ||
run: pip install --user yamllint | ||
- name: Run yamllint | ||
run: ~/.local/bin/yamllint -c .yamllint.yml --strict . | ||
uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main | ||
|
||
shellcheck: | ||
name: shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: shellcheck | ||
uses: fkautz/[email protected] | ||
uses: networkservicemesh/.github/.github/workflows/shellcheck.yaml@main | ||
|
||
golangci-lint: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.16 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.35 | ||
args: --build-tags=interdomain | ||
excludeFmtErrorf: | ||
name: exclude fmt.Errorf | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Exclude fmt.Errorf | ||
run: | | ||
if grep -r --include=*.go --exclude=*.pb.go fmt.Errorf . ; then | ||
echo "Please use errors.Errorf (or errors.New or errors.Wrap or errors.Wrapf) as appropriate rather than fmt.Errorf" | ||
exit 1 | ||
fi | ||
uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main | ||
|
||
exclude-fmt-errorf: | ||
uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main | ||
|
||
checkgomod: | ||
name: check go.mod and go.sum | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.16 | ||
- run: go mod tidy | ||
- name: Check for changes in go.mod or go.sum | ||
run: | | ||
git diff --name-only --exit-code go.mod || ( echo "Run go tidy" && false ) | ||
git diff --name-only --exit-code go.sum || ( echo "Run go tidy" && false ) | ||
uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main | ||
|
||
cloudtest: | ||
runs-on: ubuntu-latest | ||
env: | ||
|
@@ -136,6 +91,7 @@ jobs: | |
with: | ||
name: logs-${{ github.run_number }} | ||
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}/.tests/cloud_test/ | ||
|
||
packet-cleanup: | ||
name: packet cleanup | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,6 @@ on: | |
- update/** | ||
jobs: | ||
auto-pull-request: | ||
name: Pull Request on update/* Branch Push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Construct PR message | ||
run: | | ||
PULL_REQUEST_BODY=$(git log -1) | ||
echo ${PULL_REQUEST_BODY} | ||
echo PULL_REQUEST_BODY=${PULL_REQUEST_BODY} >> $GITHUB_ENV | ||
- name: pull-request-action | ||
uses: vsoch/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} | ||
BRANCH_PREFIX: "update/" | ||
PULL_REQUEST_BRANCH: "main" | ||
uses: networkservicemesh/.github/.github/workflows/pr-for-updates.yaml@main | ||
secrets: | ||
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} |