|
| 1 | +name: Playwright Tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main, master ] |
| 6 | + pull_request: |
| 7 | + branches: [ main, master ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + playwrigth-standalone: |
| 11 | + timeout-minutes: 60 |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Setup Node.js |
| 18 | + uses: actions/setup-node@v4 |
| 19 | + with: |
| 20 | + node-version: '18' |
| 21 | + |
| 22 | + - name: Setup PHP |
| 23 | + uses: shivammathur/setup-php@v2 |
| 24 | + with: |
| 25 | + php-version: '8.3' |
| 26 | + extensions: yaml |
| 27 | + |
| 28 | + - name: Install System Dependencies |
| 29 | + run: | |
| 30 | + sudo apt-get update |
| 31 | + sudo apt-get install -y unzip patchelf wget php-cli php-yaml gnuplot |
| 32 | +
|
| 33 | + - name: Install SunCAE Dependencies (FeenoX & Gmsh) standalone |
| 34 | + run: ./deps.sh |
| 35 | + |
| 36 | + - name: Check script |
| 37 | + run: php html/check.php |
| 38 | + |
| 39 | + - name: Install Node Dependencies |
| 40 | + run: npm ci |
| 41 | + |
| 42 | + - name: Install Playwright Browsers |
| 43 | + run: npx playwright install --with-deps |
| 44 | + |
| 45 | + - name: Run Playwright tests |
| 46 | + run: npx playwright test |
| 47 | + |
| 48 | + - name: Upload Playwright Report |
| 49 | + if: failure() |
| 50 | + uses: actions/upload-artifact@v4 |
| 51 | + with: |
| 52 | + name: playwright-report-standalone |
| 53 | + path: playwright-report-stanadlone/ |
| 54 | + retention-days: 30 |
| 55 | + |
| 56 | + playwrigth-apt: |
| 57 | + timeout-minutes: 60 |
| 58 | + runs-on: ubuntu-latest |
| 59 | + |
| 60 | + steps: |
| 61 | + - uses: actions/checkout@v4 |
| 62 | + |
| 63 | + - name: Setup Node.js |
| 64 | + uses: actions/setup-node@v4 |
| 65 | + with: |
| 66 | + node-version: '18' |
| 67 | + |
| 68 | + - name: Setup PHP |
| 69 | + uses: shivammathur/setup-php@v2 |
| 70 | + with: |
| 71 | + php-version: '8.3' |
| 72 | + extensions: yaml |
| 73 | + |
| 74 | + - name: Install System Dependencies |
| 75 | + run: | |
| 76 | + sudo apt-get update |
| 77 | + sudo apt-get install -y unzip patchelf wget php-cli php-yaml gnuplot |
| 78 | +
|
| 79 | +# feenox 1.2 is not available in ubuntu 24.04, only in 25.10 |
| 80 | + - name: Install SunCAE Dependencies (FeenoX & Gmsh) from apt |
| 81 | + run: | |
| 82 | + sudo apt-get install -y python3-gmsh pandoc |
| 83 | + ./deps.sh |
| 84 | +
|
| 85 | + - name: Check script |
| 86 | + run: php html/check.php |
| 87 | + |
| 88 | + - name: Install Node Dependencies |
| 89 | + run: npm ci |
| 90 | + |
| 91 | + - name: Install Playwright Browsers |
| 92 | + run: npx playwright install --with-deps |
| 93 | + |
| 94 | + - name: Run Playwright tests |
| 95 | + run: npx playwright test |
| 96 | + |
| 97 | + - name: Upload Playwright Report |
| 98 | + if: failure() |
| 99 | + uses: actions/upload-artifact@v4 |
| 100 | + with: |
| 101 | + name: playwright-report-apt |
| 102 | + path: playwright-report-apt/ |
| 103 | + retention-days: 30 |
0 commit comments