Skip to content

Commit 53f074b

Browse files
Update test-install.yml
1 parent 3bb50c7 commit 53f074b

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/test-install.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,7 @@ on:
1515
- 'documentation/**'
1616
- 'design/**'
1717

18-
jobs:
19-
test_puppeteer_pdf_ubuntu_latest:
20-
name: run puppeteer pdf test on ubuntu latest
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Set environment variable
25-
run: echo "RUNNING_ON_GITHUB=1" >> $GITHUB_ENV
26-
- name: Setup dotnet
27-
uses: actions/setup-dotnet@v4
28-
- name: alter sandbox permission for chrome
29-
run: cd /usr/local/bin/ && sudo chmod -R 755 Chrome && sudo chmod -R ChromeHeadlessShell
30-
- name: exec dotnet test
31-
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test --filter "Name=HtmlToPdfTest"
32-
env:
33-
RUNNING_ON_GITHUB_ACTIONS: ${{ env.RUNNING_ON_GITHUB }}
34-
18+
jobs:
3519
test_ubuntu_latest:
3620
name: test build on ubuntu latest
3721
runs-on: ubuntu-latest
@@ -45,3 +29,16 @@ jobs:
4529
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K
4630
env:
4731
RUNNING_ON_GITHUB_ACTIONS: ${{ env.RUNNING_ON_GITHUB }}
32+
33+
- name: alter sandbox permission for chrome
34+
run: cd /usr/local/bin/Chrome/Linux-133.0.6943.53/chrome-linux64/ && sudo chown root:root chrome_sandbox && sudo chmod 4755 chrome_sandbox
35+
36+
- name: alter sandbox permission for chromeheadlessshell
37+
run: cd /usr/local/bin/ChromeHeadlessShell/Linux-133.0.6943.53/chrome-headless-shell-linux64/ && sudo chown root:root chrome_sandbox && sudo chmod 4755 chrome_sandbox
38+
39+
- name: Setup dotnet
40+
uses: actions/setup-dotnet@v4
41+
- name: exec dotnet test
42+
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test --filter "Name=HtmlToPdfTest"
43+
env:
44+
RUNNING_ON_GITHUB_ACTIONS: ${{ env.RUNNING_ON_GITHUB }}

0 commit comments

Comments
 (0)