Skip to content

Commit ad33d04

Browse files
Update test-install.yml
1 parent 5c95838 commit ad33d04

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/test-install.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ jobs:
2222
env:
2323
RUNNING_ON_GITHUB_ACTIONS: true
2424
steps:
25-
- name: install packages
26-
run: |
27-
sudo apt update && sudo apt upgrade -y
28-
sudo apt-get install ansible
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-dotnet@v4
2927
- name: verify ansible version
3028
run: cd /home/actions-runner/_work/firewall-orchestrator/firewall-orchestrator/scripts && install-ansible-from-venv.sh
29+
- name: do test install in case of merged pull request
30+
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K
31+
- name: Running in GitHub actions requires testing puppeteer pdf creation separately
32+
if: ${{ env.RUNNING_ON_GITHUB_ACTIONS }} == true
33+
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test --filter "Name=HtmlToPdfTest"
34+
35+
3136
test_install:
3237
name: test build on ${{ matrix.os }}
3338
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)