forked from flohansen/hsfl-master-ai-cloud-engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/update-http-stress-test
- Loading branch information
Showing
272 changed files
with
20,561 additions
and
3,632 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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Run tests (lib folder) | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'lib/**' | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
name: Test lib folder | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Install dependencies for config | ||
working-directory: ./lib/config | ||
run: go mod tidy | ||
|
||
- name: Install dependencies for router | ||
working-directory: ./lib/router | ||
run: go mod tidy | ||
|
||
- name: Install dependencies for rpc | ||
working-directory: ./lib/rpc | ||
run: go mod tidy | ||
|
||
- name: Build config library | ||
working-directory: ./lib/config | ||
run: go build -v ./... | ||
|
||
- name: Build router library | ||
working-directory: ./lib/router | ||
run: go build -v ./... | ||
|
||
- name: Build rpc library | ||
working-directory: ./lib/rpc | ||
run: go build -v ./... | ||
|
||
- name: Test Go config Module | ||
run: | | ||
cd lib/config | ||
go test ./... | ||
test_exit_code=$? # Capture the exit code of the go test command | ||
if [ $test_exit_code -eq 0 ]; then | ||
echo "Tests passed successfully." | ||
else | ||
echo "Tests failed with exit code $test_exit_code." | ||
exit 1 # Fail the GitHub Actions workflow | ||
fi | ||
- name: Test Go router Module | ||
run: | | ||
cd lib/router | ||
go test ./... | ||
test_exit_code=$? # Capture the exit code of the go test command | ||
if [ $test_exit_code -eq 0 ]; then | ||
echo "Tests passed successfully." | ||
else | ||
echo "Tests failed with exit code $test_exit_code." | ||
exit 1 # Fail the GitHub Actions workflow | ||
fi | ||
- name: Test Go rpc Module | ||
run: | | ||
cd lib/rpc | ||
go test ./... | ||
test_exit_code=$? # Capture the exit code of the go test command | ||
if [ $test_exit_code -eq 0 ]; then | ||
echo "Tests passed successfully." | ||
else | ||
echo "Tests failed with exit code $test_exit_code." | ||
exit 1 # Fail the GitHub Actions workflow | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
with-expecter: true | ||
packages: | ||
hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/products: | ||
config: | ||
dir: "./src/product-service/products/_mock" | ||
interfaces: | ||
Controller: | ||
Repository: | ||
hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/prices: | ||
config: | ||
dir: "./src/product-service/prices/_mock" | ||
interfaces: | ||
Controller: | ||
Repository: | ||
hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingList: | ||
config: | ||
dir: "./src/shoppinglist-service/userShoppingList/_mock" | ||
interfaces: | ||
Controller: | ||
Repository: | ||
hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingListEntry: | ||
config: | ||
dir: "./src/shoppinglist-service/userShoppingListEntry/_mock" | ||
interfaces: | ||
Controller: | ||
Repository: | ||
hsfl.de/group6/hsfl-master-ai-cloud-engineering/user-service/user: | ||
config: | ||
dir: "./src/user-service/user/_mock" | ||
interfaces: | ||
Controller: | ||
Repository: |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.