Update test-install.yml #265
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: Build | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'documentation/**' | |
| - 'design/**' | |
| pull_request: | |
| types: [ ready_for_review, review_requested ] | |
| paths-ignore: | |
| - 'documentation/**' | |
| - 'design/**' | |
| jobs: | |
| test_install_selfhosted: | |
| name: test build on selfhosted | |
| runs-on: self-hosted | |
| env: | |
| RUNNING_ON_GITHUB_ACTIONS: true | |
| steps: | |
| - name: install packages | |
| run: | | |
| sudo apt update && sudo apt upgrade -y | |
| sudo apt-get install ansible | |
| - name: verify ansible version | |
| run: cd /home/actions-runner/_work/firewall-orchestrator/firewall-orchestrator/scripts && install-ansible-from-venv.sh | |
| test_install: | |
| name: test build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| RUNNING_ON_GITHUB_ACTIONS: true | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, ubuntu-22.04] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| - name: do test install in case of merged pull request | |
| run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K | |
| - name: Running in GitHub actions requires testing puppeteer pdf creation separately | |
| if: ${{ env.RUNNING_ON_GITHUB_ACTIONS }} == true | |
| run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test --filter "Name=HtmlToPdfTest" | |