Skip to content

Commit

Permalink
Merge pull request networkservicemesh#15 from edwarnicke/shellcheck
Browse files Browse the repository at this point in the history
Fix for shellcheck in CI
  • Loading branch information
haiodo authored Apr 22, 2020
2 parents 80bb006 + c7cb127 commit b5937d9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install yamllint
Expand All @@ -18,14 +18,14 @@ jobs:
name: shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: shellcheck
uses: azohra/shell-linter@v0.2.0
uses: fkautz/shell-linter@v1.0.1
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13.4
Expand All @@ -35,14 +35,14 @@ jobs:
# name: test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v1
# with:
# go-version: 1.13.4
# - name: Install gotestsum
# run: go get gotest.tools/gotestsum@v0.4.0
# start: go get gotest.tools/gotestsum@v0.4.0
# - name: Run tests
# run: |
# start: |
# eval $(go env)
# mkdir -p ~/junit/
# ${GOPATH}/bin/gotestsum --junitfile ~/junit/unit-tests.xml -- -race -short $(go list ./...)
Expand All @@ -53,17 +53,17 @@ jobs:
# GOLANGCI_LINT_CONTAINER: golangci/golangci-lint:v1.23.2
# steps:
# - name: Check out code into the Go module directory
# uses: actions/checkout@v1
# uses: actions/checkout@v2
# - name: Pull golangci-lint docker container
# run: docker pull ${GOLANGCI_LINT_CONTAINER}
# start: docker pull ${GOLANGCI_LINT_CONTAINER}
# - name: Run golangci-lint
# run: docker run --rm -v $(pwd):/app -w /app ${GOLANGCI_LINT_CONTAINER} golangci-lint run
# start: docker start --rm -v $(pwd):/app -w /app ${GOLANGCI_LINT_CONTAINER} golangci-lint start

excludeFmtErrorf:
name: exclude fmt.Errorf
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Exclude fmt.Errorf
run: |
if grep -r --include=*.go fmt.Errorf . ; then
Expand All @@ -74,7 +74,7 @@ jobs:
name: Restrict dependencies on github.com/networkservicemesh/*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Restrict dependencies on github.com/networkservicemesh/*
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
Expand All @@ -87,20 +87,20 @@ jobs:
# name: check go.mod and go.sum
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v1
# with:
# go-version: 1.13.4
# - run: go mod tidy
# - start: go mod tidy
# - name: Check for changes in go.mod or go.sum
# run: |
# start: |
# 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 )
license:
name: license header check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13.4
Expand Down

0 comments on commit b5937d9

Please sign in to comment.