From 17a1fb1b268958a3e225d2fb196afed24bae91de Mon Sep 17 00:00:00 2001 From: "Mahadik, Mukul Chandrakant" Date: Thu, 20 Jun 2024 15:28:44 -0700 Subject: [PATCH] Created e2etest.yaml Used the existing file template from this PR: https://github.com/EVerest/everest-demo/pull/23 -------- Currently testing only with ubuntu-latest OS. The demo scripts used are: - demo-automated-testing.sh I have commented out the existing /demo-iso15118-2-ac-plus-ocpp201.sh since as per the Readme.md it requires arguments to be passed and I am unsure which set of arguments need to be passed for the purpose of the workflow. https://github.com/EVerest/everest-demo#step-1-run-the-demo ----- --- .github/workflows/e2etest.yaml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/e2etest.yaml diff --git a/.github/workflows/e2etest.yaml b/.github/workflows/e2etest.yaml new file mode 100644 index 00000000..0ca6dcf0 --- /dev/null +++ b/.github/workflows/e2etest.yaml @@ -0,0 +1,47 @@ +name: e2etest + +on: + pull_request: + branches: + - main + push: + branches: + - main + + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '5 4 * * *' + +jobs: + pull-and-run-tests: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + # os: [macos-latest] + os: [ubuntu-latest] + + steps: + - name: Setup Docker on macOS using Colima, Lima-VM, and Homebrew. + id: docker-install + if: matrix.os == 'macos-latest' + uses: douglascamata/setup-docker-macos-action@v1-alpha # Uses an action in the root directory + + - name: Verify install for both macOS and Ubuntu + id: docker-verify + shell: bash + run: | + docker --version + docker compose version + if [ "$RUNNER_OS" == "macOS" ]; then + colima --version + mkdir -p /var/folders + + - name: Download and launch automated-testing.sh + id: curl-download-and-launch-automated-testing + shell: bash + timeout-minutes: 30 + run: | + curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-automated-testing.sh | bash + # curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-iso15118-2-ac-plus-ocpp201.sh | bash + \ No newline at end of file