Adding 5 more suites to replay pipeline, code cleanup (#115) #331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: replay_target | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# clone the unlogged-sdk project | |
- name: checkout commit | |
uses: actions/checkout@v4 | |
# unlogged-sdk project | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '19' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Get version | |
run: | | |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
# Testing script | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./src/test/python/requirements.txt | |
- name: Run testing script | |
run: | | |
python3 ./src/test/python/replay_target.py ${{ env.RELEASE_VERSION }} | |
# Summarize report | |
- name: Summarize Job summary - start | |
if: always() | |
run: | | |
echo "# Replay Pipeline results" >> $GITHUB_STEP_SUMMARY | |
echo "**SDK version** : ${{ env.RELEASE_VERSION }}" >> $GITHUB_STEP_SUMMARY | |
- name: Read Compile pipeline markup report | |
id: replaytest | |
uses: jaywcjlove/github-action-read-file@main | |
with: | |
localfile: replay-pipeline-result.md | |
if: always() | |
- name: Write report summary | |
run: | | |
echo "# Replay Pipeline Report" >> $GITHUB_STEP_SUMMARY | |
echo "${{ steps.replaytest.outputs.content }}" >> $GITHUB_STEP_SUMMARY | |
if: always() | |
- name: Store reports | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Replay Pipeline reports | |
path: | | |
**/replay-pipeline-result.md | |
**/replayReports/ |