From 33a076b2637de8abb9be795baa63c1088b0ad282 Mon Sep 17 00:00:00 2001 From: Erica Pescio Date: Thu, 25 Jan 2024 14:13:57 +0100 Subject: [PATCH] Fixed tests pipeline --- .github/workflows/tests.yml | 42 +++++-------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 48b3b75..4254dc4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,41 +7,6 @@ on: - develop jobs: - # bundle-app: - # name: Bundle App - # runs-on: ubuntu-latest - # outputs: - # app_name: ${{ steps.appinfo.outputs.app_name }} - # app_id: ${{ steps.appinfo.outputs.app_id }} - # steps: - # - name: Checkout code - # uses: actions/checkout@v3 - - # - name: Fetch and set app info - # id: appinfo - # run: | - # APP_ID=$(cat packages/splunk-*/app.manifest | jq -r '.info.id.name') - # echo "app_id=${APP_ID}" >> $GITHUB_OUTPUT - # APP_NAME=$(echo "$APP_ID" | tr _ - ) - # echo "app_name=${APP_NAME}" >> $GITHUB_OUTPUT - - # - name: Excluding images from README - # run: | - # sed -i '/^!/d' README.md - - # - name: Bundle app source - # run: | - # mkdir dist - # cp README.md packages/splunk-*/ - # cp AUTHORS.md packages/splunk-*/ - # tar -zcvf dist/${{ steps.appinfo.outputs.app_name }}.tgz packages/ - - # - name: Upload artifact - # uses: actions/upload-artifact@v3 - # with: - # name: app_tgz - # path: dist/${{ steps.appinfo.outputs.app_name }}.tgz - slim-validate: name: SLIM Validation runs-on: ubuntu-latest @@ -56,7 +21,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - + - name: Fetch and set app info id: appinfo run: | @@ -71,7 +36,10 @@ jobs: pip install splunk-packaging-toolkit - name: Slim Validate - run: slim validate packages/${{ steps.appinfo.outputs.app_id }} + run: | + cp README.md packages/${{ steps.appinfo.outputs.app_id }} + slim validate packages/${{ steps.appinfo.outputs.app_id }} + splunk-test: name: Deploy and test the Viz