Merge pull request #64 from trobz/feat/show-cmd #24
This file contains hidden or 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: test-action | addon-install-failing | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test-addons-repo-install-failing: | |
| name: addon install fails → action must fail | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./ | |
| id: run-action | |
| continue-on-error: true | |
| with: | |
| odoo_version: "18.0" | |
| python_version: "3.10" | |
| oca_repos: "queue" | |
| addons_subdirectory: tests/fixtures/addon-bad-import | |
| - name: Assert action failed | |
| run: | | |
| if [ "${{ steps.run-action.outcome }}" != "failure" ]; then | |
| echo "Expected the action to fail on bad import, but outcome was: ${{ steps.run-action.outcome }}" | |
| exit 1 | |
| fi | |
| echo "Action correctly failed on bad import." |