Skip to content

Commit

Permalink
Forming a testrun link
Browse files Browse the repository at this point in the history
Signed-off-by: MaxGelbakhiani <max@morphbits.io>
  • Loading branch information
MaxGelbakhiani committed Mar 1, 2024
1 parent 13aa094 commit e1df17f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,20 @@ jobs:
source venv.local-pytest/bin/activate && pytest --alluredir="$ALLURE_RESULTS_DIR" pytest_tests/testsuites/session_token/test_static_session_token_container.py
working-directory: neofs-testcases


- name: Add link to github run
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run:
TEST_RUN_URL=`gh run --repo ${{ github.repository }} view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name == "${{ github.job }}") | .url'`
echo "TEST_RUN_URL=$TEST_RUN_URL" >> $ALLURE_RESULTS_DIR/environment.properties
echo "TEST_RUN_URL=$TEST_RUN_URL" >> $GITHUB_ENV

- name: tmate session
if: always()
uses: mxschmitt/action-tmate@v3


- name: Publish to NeoFS
id: put_report
if: always() && steps.prepare_test_env.outcome == 'success'
Expand Down

0 comments on commit e1df17f

Please sign in to comment.