Skip to content

Commit

Permalink
Move IT folder into .github folder (#15)
Browse files Browse the repository at this point in the history
* Move IT folder to .github folder

Signed-off-by: FedeNQ <[email protected]>

* Add ./.github/it to working directory

Signed-off-by: FedeNQ <[email protected]>

* Change target_dir in tests

Signed-off-by: FedeNQ <[email protected]>

* Change target_dir

Signed-off-by: FedeNQ <[email protected]>

* Change target_dir

Signed-off-by: FedeNQ <[email protected]>

* Add /.github in path

Signed-off-by: FedeNQ <[email protected]>

* change on docker-compose

Signed-off-by: FedeNQ <[email protected]>

* change target_dir in run-postgres-test

Signed-off-by: FedeNQ <[email protected]>

---------

Signed-off-by: FedeNQ <[email protected]>
  • Loading branch information
FedeNQ committed Jul 12, 2023
1 parent c4901bd commit adc80df
Show file tree
Hide file tree
Showing 39 changed files with 14 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions it/docker-compose.yaml → .github/it/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ services:

spiffe-helper:
build:
context: ../
dockerfile: ./it/spiffe-helper/Dockerfile
context: ../../
dockerfile: ./.github/it/spiffe-helper/Dockerfile

postgres-db:
build: postgres
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions .github/it/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# use only to clean docker
docker compose stop
docker system prune
docker rmi $(docker images -qa)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/tests/change-entry-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the target directory path
target_dir="../../it"
target_dir="../it"

# Check if the target directory exists
if [ ! -d "$target_dir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/restore-entry-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the target directory path
target_dir="../../it"
target_dir="../it"

# Check if the target directory exists
if [ ! -d "$target_dir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/run-go-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the target directory path
target_dir="../../it"
target_dir="../it"

# Check if the target directory exists
if [ ! -d "$target_dir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/run-mysql-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the target directory path
target_dir="../../it"
target_dir="../it"

# Check if the target directory exists
if [ ! -d "$target_dir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/run-postgres-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the target directory path
target_dir="../../it"
target_dir="../it"

# Check if the target directory exists
if [ ! -d "$target_dir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Build containers
run: ./build.sh
shell: bash
working-directory: ./it
working-directory: ./.github/it
- name: Run tests
run: bash ${{ matrix.tests }}
shell: bash
Expand Down

0 comments on commit adc80df

Please sign in to comment.