Skip to content

Commit

Permalink
added github workflow to run interactive CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbagmar committed Nov 20, 2024
1 parent 239bcf4 commit 08bc510
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/InteractiveCLI_CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Interactive_CLI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Run Interactive CLI tests
run: |
RUN_IN_CI=true IS_VISUAL=false CONFIG=./configs/cli_local_config.properties PLATFORM=cli ./gradlew run
- name: Save Test Artifacts
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results
path: target

0 comments on commit 08bc510

Please sign in to comment.