-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding integration with new tool horusec-dart analysis dart language and flutter framework * Update LDAP connection with Microsoft AD * Update horusec-java, horusec-kotlin, horusec-leaks, horusec-nodejs, horusec-kubernetes, horusec-csharp to run with limit of units by analysis * Update manager to logout forced
- Loading branch information
1 parent
c6b4229
commit d5d8aac
Showing
112 changed files
with
3,033 additions
and
967 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: HorusecDartPipeline | ||
|
||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
jobs: | ||
install-build-test-fmt-lint: | ||
name: install-build-test-fmt-lint | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Set up Go 1.14 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.14 | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: fmt | ||
run: | | ||
echo "==> Checking that code complies with gofmt requirements..." | ||
gofmt_files=$(gofmt -l `find ./horusec-dart -name '*.go' | grep -v vendor`) | ||
echo $gofmt_files | ||
if [ ! -z $gofmt_files ]; then | ||
echo 'gofmt needs running on the following files:' | ||
echo "$gofmt_files" | ||
echo "You can use the command: \`gofmt -w \$(gofmt -l \'find ./horusec-dart -name \'*.go\' | grep -v vendor)\` to reformat code." | ||
exit 1 | ||
fi | ||
echo "=) The project horusec-dart it's OK!" | ||
- name: lint | ||
run: | | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.25.0 | ||
./bin/golangci-lint run -v --timeout=2m -c .golangci.yml ./horusec-dart/... | ||
- name: test | ||
run: | | ||
go clean -testcache | ||
go test -v ./horusec-dart/... -timeout=2m -parallel=1 -failfast -short | ||
- name: coverage | ||
run: make coverage-horusec-dart | ||
- name: build | ||
run: go build -o "./tmp/bin/horusec-dart" ./horusec-dart/cmd/app/main.go | ||
|
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
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
Oops, something went wrong.