Skip to content

Commit

Permalink
Created e2etest.yaml
Browse files Browse the repository at this point in the history
Used the existing file template from this PR:
EVerest#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

-----

Signed-off-by: Mahadik, Mukul Chandrakant <[email protected]>
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Jul 16, 2024
1 parent d116da5 commit ac37522
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/e2etest.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ac37522

Please sign in to comment.