consolidated playwright workflow into existing one #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Lua Script | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: Rathoz/gh-actions-lua@patch-1 | |
with: | |
luaVersion: "5.4" | |
- name: build | |
run: make | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: test | |
run: make test | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: moneymoney-sankey | |
path: dist/SankeyChart.lua | |
- name: Archive test reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |