Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/actions/sanity/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,23 @@ runs:
ansible-galaxy collection install ${{ github.workspace }} --force

- name: Run sanity tests
id: sanity
shell: bash
env:
ansible_collections: "/home/runner/.ansible/collections/ansible_collections"
working-directory: ${{ env.ansible_collections }}/opengear/ng
run: ansible-test sanity --docker --python ${{ inputs.python-version }}
run: |
ansible-test sanity --docker --python ${{ inputs.python-version }} 2>&1 | tee "$RUNNER_TEMP/sanity-output.txt"
exit ${PIPESTATUS[0]}

- name: Summarise sanity tests
if: always()
shell: bash
run: |
if [ "${{ steps.sanity.outcome }}" = "success" ]; then
echo "### ✅ Sanity Tests" >> "$GITHUB_STEP_SUMMARY"
echo "No issues" >> "$GITHUB_STEP_SUMMARY"
else
echo "### ❌ Sanity Tests" >> "$GITHUB_STEP_SUMMARY"
echo "Sanity check failed, check the log output for details" >> "$GITHUB_STEP_SUMMARY"
fi
Loading