From 09962f276286160e3b153c1260569c7b3486dd07 Mon Sep 17 00:00:00 2001 From: Junwei Dai Date: Mon, 28 Oct 2024 13:31:39 -0700 Subject: [PATCH] Added github Action to run api consistency test daily Signed-off-by: Junwei Dai --- .github/workflows/test-api-consistency.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test-api-consistency.yml diff --git a/.github/workflows/test-api-consistency.yml b/.github/workflows/test-api-consistency.yml new file mode 100644 index 00000000..9c1bd420 --- /dev/null +++ b/.github/workflows/test-api-consistency.yml @@ -0,0 +1,25 @@ +name: Daily API Consistency Test + +on: + schedule: + - cron: '0 8 * * *' # Runs daily at 8 AM UTC + +jobs: + API-consistency-test: + runs-on: ubuntu-latest + strategy: + matrix: + java: [21] + + steps: + - name: Checkout Flow Framework + uses: actions/checkout@v3 + + - name: Setup Java ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + + - name: Run API Consistency Tests + run: ./gradlew test --tests "org.opensearch.flowframework.workflow.*"