Skip to content

Commit

Permalink
e2e tests: add CI workflow for e2e tests, adjusted directory path for…
Browse files Browse the repository at this point in the history
… csms
  • Loading branch information
usuletw022 committed Mar 22, 2024
1 parent 5eaa933 commit 847c973
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion e2e_tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 847c973

Please sign in to comment.