Files
compiler-explorer/.github/workflows/test-frontend.yml
Matt Godbolt 54c942ba76 Replace nopt with commander.js for argument parsing (#7673)
- Replace nopt with commander.js for better command-line argument parsing
- Add automatic help generation with detailed descriptions
- Maintain backward compatibility with existing arguments
- Remove unused nopt dependency from package.json

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-05-12 12:49:28 -05:00

42 lines
1.2 KiB
YAML

name: Compiler Explorer Frontend Testing
on: [push]
jobs:
cypress-run:
if: github.repository_owner == 'compiler-explorer'
runs-on: ubuntu-22.04
strategy:
matrix:
browser: ['chrome']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
check-latest: true
cache: npm
- name: Install prerequisites
run: make prereqs
- name: Setup Firefox
uses: browser-actions/setup-firefox@v1
if: matrix.browser == 'firefox'
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1
if: matrix.browser == 'chrome'
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev -- --language c++ --no-local
wait-on: 'http://localhost:10240'
wait-on-timeout: 120
config: screenshotOnRunFailure=true,video=false
browser: ${{ matrix.browser }}
- name: Upload screenshots on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots