diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb0573b2..ab6128ad 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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 @@ -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 ./...) @@ -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 @@ -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 @@ -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