chore: remove secrets from source, add cypress.env.json to gitignore #1
This file contains hidden or 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: RegWatch Regression Suite | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| regression-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Cypress Run & AI Enrichment | |
| run: npm run cypress:run:full | |
| env: | |
| CYPRESS_email: ${{ secrets.REGWATCH_EMAIL }} | |
| CYPRESS_password: ${{ secrets.REGWATCH_PASSWORD }} | |
| HUGGINGFACE_API_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }} | |
| - name: Generate Combined HTML Report | |
| if: always() | |
| run: npm run generate:html | |
| - name: Upload Test Artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: regwatch-test-reports | |
| path: | | |
| cypress/reports/html | |
| cypress/screenshots | |
| cypress/videos | |
| retention-days: 7 |