55 tags :
66 - ' *'
77 branches :
8- - ' *'
9- - ' */**'
8+ - main
109 pull_request :
1110
1211concurrency :
2120 os :
2221 - ubuntu-latest
2322 - ubuntu-22.04 # This is CentOS 7 under the hood
24- - macos-12
23+ - macos-latest
2524 - windows-latest
2625
2726 runs-on : ${{ matrix.os }}
3029
3130 steps :
3231 - uses : actions/checkout@v4
32+
33+ - name : Bring in device.xml
34+ uses : actions/checkout@v4
35+ with :
36+ repository : os-fpga/Raptor
37+ path : Raptor
38+ sparse-checkout : ' etc'
3339
3440 - name : Setup Node.js ${{ matrix.os }}
3541 if : ${{ matrix.os != 'ubuntu-22.04' }}
@@ -86,10 +92,17 @@ jobs:
8692 - name : Unit Jtest Linux latest & windows & MacOS
8793 if : ${{ matrix.os != 'ubuntu-22.04' }}
8894 run : npm test
95+
96+ - name : E2E Playwright tests on Linux latest & MacOS
97+ if : ${{ matrix.os == 'ubuntu-latest' }}
98+ run : |
99+ cp -rf Raptor/etc backend
100+ npm run compile && xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npx playwright test
101+
102+ - name : cat RPE log
103+ if : matrix.os == 'ubuntu-latest' && always()
104+ run : find $HOME -type f -name "rpe.log" -exec cat {} +
89105
90- # - name: E2E Playwright tests on Linux latest & MacOS
91- # if: ${{ matrix.os == 'ubuntu-latest' }}
92- # run: npm run compile && xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npx playwright test
93106
94107 - name : Run ESLint only on ubuntu-latest
95108 if : ${{ matrix.os == 'ubuntu-latest' }}
@@ -116,7 +129,7 @@ jobs:
116129 matrix :
117130 os :
118131 - ubuntu-22.04 # This is CentOS 7 under the hood
119- - macos-12
132+ - macos-latest
120133 - windows-latest
121134
122135 runs-on : ${{ matrix.os }}
@@ -206,15 +219,15 @@ jobs:
206219 echo ${{ github.ref }}
207220
208221 - name : Upload Package
209- if : ${{ github.ref == 'refs/heads/main' && matrix.os != 'windows-latest' }}
210- uses : actions/upload-artifact@v3
222+ if : ${{ github.ref == 'refs/heads/main' && matrix.os != 'windows-latest' }}
223+ uses : actions/upload-artifact@v4.4.3
211224 with :
212225 name : rapid_power_estimator_${{ matrix.os }}
213226 path : dist/rapid_power_estimator*.tar.gz
214227
215228 - name : Upload Package
216229 if : ${{ github.ref == 'refs/heads/main' && matrix.os == 'windows-latest' }}
217- uses : actions/upload-artifact@v3
230+ uses : actions/upload-artifact@v4.4.3
218231 with :
219232 name : rapid_power_estimator_${{ matrix.os }}
220233 path : dist/rapid_power_estimator*.exe
0 commit comments