diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml new file mode 100644 index 0000000..ca87340 --- /dev/null +++ b/.github/workflows/end-to-end-tests.yml @@ -0,0 +1,22 @@ +name: End-to-End Tests +on: + push: + branches: [ '*' ] + +jobs: + build-and-test: + name: Build docker and Run E2E Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + - name: Install Docker Compose + run: | + apt-get update + apt-get install docker-compose + docker-compose --version + - name: Build and Start Docker Compose + run: ./e2e_tests/run-e2e-tests.sh \ No newline at end of file diff --git a/e2e_tests/run-e2e-tests.sh b/e2e_tests/run-e2e-tests.sh index 4df7bb7..66aa45b 100755 --- a/e2e_tests/run-e2e-tests.sh +++ b/e2e_tests/run-e2e-tests.sh @@ -4,7 +4,7 @@ SCRIPT_DIR=$(dirname "$(readlink -f "$0")") # Get the directory where the CSMS is located -DEFAULT_CSMS_DIR="${SCRIPT_DIR}"/../../maeve-csms +DEFAULT_CSMS_DIR="${SCRIPT_DIR}"/.. CSMS_DIR="${1:-$DEFAULT_CSMS_DIR}" # Define paths relative to the script's location