Skip to content

Commit 42e3752

Browse files
committed
from apt
1 parent 2592b29 commit 42e3752

3 files changed

Lines changed: 54 additions & 7 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main, master ]
88

99
jobs:
10-
test:
10+
playwrigth-standalone:
1111
timeout-minutes: 60
1212
runs-on: ubuntu-latest
1313

@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: '18'
21-
21+
2222
- name: Setup PHP
2323
uses: shivammathur/setup-php@v2
2424
with:
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt-get update
3131
sudo apt-get install -y unzip patchelf wget php-cli php-yaml gnuplot
3232
33-
- name: Install SunCAE Dependencies (FeenoX & Gmsh)
33+
- name: Install SunCAE Dependencies (FeenoX & Gmsh) standalone
3434
run: ./deps.sh
3535

3636
- name: Install Node Dependencies
@@ -49,3 +49,50 @@ jobs:
4949
name: playwright-report
5050
path: playwright-report/
5151
retention-days: 30
52+
53+
54+
jobs:
55+
playwrigth-apt:
56+
timeout-minutes: 60
57+
runs-on: ubuntu-latest
58+
59+
steps:
60+
- uses: actions/checkout@v4
61+
62+
- name: Setup Node.js
63+
uses: actions/setup-node@v4
64+
with:
65+
node-version: '18'
66+
67+
- name: Setup PHP
68+
uses: shivammathur/setup-php@v2
69+
with:
70+
php-version: '8.3'
71+
extensions: yaml
72+
73+
- name: Install System Dependencies
74+
run: |
75+
sudo apt-get update
76+
sudo apt-get install -y unzip patchelf wget php-cli php-yaml gnuplot
77+
78+
- name: Install SunCAE Dependencies (FeenoX & Gmsh) from apt
79+
run: |
80+
sudo apt-get install -y libgmsh-dev feenox pandoc
81+
./deps.sh
82+
83+
- name: Install Node Dependencies
84+
run: npm ci
85+
86+
- name: Install Playwright Browsers
87+
run: npx playwright install --with-deps
88+
89+
- name: Run Playwright tests
90+
run: npx playwright test
91+
92+
- name: Upload Playwright Report
93+
if: failure()
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: playwright-report
97+
path: playwright-report/
98+
retention-days: 30

solvers/feenox/deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ echo -n "meshers/feenox... "
1616
use_system_binary=0
1717
if [ -x "$(which feenox 2>/dev/null)" ] && [ $force = 0 ]; then
1818
installed_version=$(get_feenox_version "$(which feenox)")
19-
if [ -n "$installed_version" ] && version_ge "$installed_version" "$feenox_min_version"; then
20-
echo "found system version $installed_version (>= $feenox_min_version), using it"
19+
if [ -n "$installed_version" ] && version_ge "$installed_version" "$feenox_version_min"; then
20+
echo "found system version $installed_version (>= $feenox_version_min), using it"
2121
use_system_binary=1
2222
# Create symlink to system binary
2323
mkdir -p bin
2424
ln -sf "$(which feenox)" bin/feenox
2525
else
26-
echo "system version $installed_version is too old (need >= $feenox_min_version), will download"
26+
echo "system version $installed_version is too old (need >= $feenox_version_min), will download"
2727
fi
2828
fi
2929

uxs/faster-than-quick/deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ bootstrap_version=5.3.3
44
bootstrap_icons_version=1.11.3
55
katex_version=0.16.11
66
pandoc_version=3.5
7-
pandoc_version_min=3.2
7+
pandoc_version_min=3.1
88

99
# boostrap (we only need the js, the css comes from bootswatch)
1010
echo -n "uxs/faster-than-quick/bootstrap.js... "

0 commit comments

Comments
 (0)