Cypress
Last updated
Last updated
const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
reporter: 'junit',
reporterOptions: {
mochaFile: 'reports/test-results.xml',
toConsole: true
}
}
})$ npm install -g @testfiesta/tacotrucktacotruck testfiesta \
run:submit \
--token testfiesta_... \
--handle orgHandle \
--project projectKey \
--name runName \
--data test-results/*.xmlname: cypress
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: π¦ Install dependencies
run: npm install
- name: π§ͺ Cypress run
uses: cypress-io/github-action@v6
with:
start: npm start
wait-on: 'http://localhost:3000'
- name: Report Results
if: false
uses: testfiesta/tacotruck-action@v1
with:
provider: testfiesta
handle: handle
project: project
base-url: https://api.testfiesta.com
credentials: ${{ secrets.TESTFIESTA_API_KEY }}
run-name: Cypress CI run ${{ github.run_number }}
results-path: ./reports/test-results.xml