Skip to content

Commit

Permalink
tests: change example dir to be a git submodule (ZupIT#582)
Browse files Browse the repository at this point in the history
This commit remove the example directory and add a git submodule to
horusec example repository. This commit also update the e2e and test
workflow to clone submodules.

Co-authored-by: Matheus Alcantara <[email protected]>
  • Loading branch information
matheusalcantarazup and matheusalcantarazup authored Sep 21, 2021
1 parent b52ba0e commit 5feef43
Show file tree
Hide file tree
Showing 214 changed files with 8 additions and 9,499 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ jobs:
id: go
- name: Check out code
uses: actions/checkout@v2
with:
submodules: true
- name: e2e
run: make test-e2e
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-go@v2
with:
go-version: 1.17
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples"]
path = examples
url = https://github.com/ZupIT/horusec-examples-vulnerabilities
1 change: 1 addition & 0 deletions examples
Submodule examples added at 36c5c9
69 changes: 0 additions & 69 deletions examples/c/example1/test.cpp

This file was deleted.

34 changes: 0 additions & 34 deletions examples/csharp/example1/NetCoreVulnerabilities.sln

This file was deleted.

15 changes: 0 additions & 15 deletions examples/csharp/example1/NetCoreVulnerabilities/Errors.cs

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions examples/csharp/example1/NetCoreVulnerabilities/Program.cs

This file was deleted.

47 changes: 0 additions & 47 deletions examples/csharp/example1/NetCoreVulnerabilities/Vulnerabilities.cs

This file was deleted.

43 changes: 0 additions & 43 deletions examples/dart/example1/lib/data/database_helper.dart

This file was deleted.

42 changes: 0 additions & 42 deletions examples/dart/example1/lib/data/query/user_ctr.dart

This file was deleted.

20 changes: 0 additions & 20 deletions examples/dart/example1/lib/main.dart

This file was deleted.

25 changes: 0 additions & 25 deletions examples/dart/example1/lib/models/user.dart

This file was deleted.

Loading

0 comments on commit 5feef43

Please sign in to comment.