fix link order #7124
Workflow file for this run
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: FWO Test Install | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-install: | |
| name: Test install on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| RUNNING_ON_GITHUB_ACTIONS: true | |
| FWO_RUN_INTEGRATION_TESTS: "true" | |
| FWO_TEST_USERNAME: "integration_user_jwt_refresh_test" | |
| FWO_TEST_PASSWORD: "testpassword" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Run Ansible test install without integration cleanup | |
| run: | | |
| cd /home/runner/work/firewall-orchestrator/firewall-orchestrator | |
| ansible-playbook -e force_install=true site.yml -K --skip-tags integrationtests | |
| - 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" | |
| - name: Run JWT refresh integration tests | |
| if: ${{ env.FWO_RUN_INTEGRATION_TESTS == 'true' }} | |
| run: | | |
| sudo -u fworch env \ | |
| RUNNING_ON_GITHUB_ACTIONS=true \ | |
| FWO_RUN_INTEGRATION_TESTS=true \ | |
| FWO_TEST_USERNAME=integration_user_jwt_refresh_test \ | |
| FWO_TEST_PASSWORD=testpassword \ | |
| dotnet test /usr/local/fworch/test/csharp/FWO.Test/FWO.Test.csproj --filter "FullyQualifiedName~AuthenticationTokenIntegrationTest" | |
| - name: Run Ansible integration tests with cleanup | |
| if: ${{ success() }} | |
| run: | | |
| cd /home/runner/work/firewall-orchestrator/firewall-orchestrator | |
| ansible-playbook -e force_install=true site.yml -K --tags integrationtests | |
| python-code-check: | |
| name: Python Code Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install -r roles/importer/files/importer/requirements.txt | |
| - run: pip install -r scripts/customizing/app_data_import/requirements-for-app-data-import.txt | |
| - uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b | |
| with: | |
| version: "0.15.0" | |
| - name: pyright | |
| run: | | |
| pyright --version | |
| pyright | |
| - run: ruff check | |
| - run: ruff format --exit-non-zero-on-format |