Skip to content

Commit

Permalink
Release prep (#20)
Browse files Browse the repository at this point in the history
* debug logs, test node versions
* doc updates
  • Loading branch information
munderseth authored Sep 21, 2023
1 parent 367c117 commit 6e1cd02
Show file tree
Hide file tree
Showing 8 changed files with 362 additions and 257 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -11,7 +9,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Test Package
name: Test
on:
push:
paths-ignore:
- '**.md'
workflow_dispatch:
env:
DEBUG_ENABLED: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: ${{ matrix.node-version }}
- uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand All @@ -22,5 +27,5 @@ jobs:
- run: npm run test
- name: Push test result to Testspace
run: |
testspace [${{ matrix.os}}]xunit.xml
testspace [${{ matrix.os}}/node-${{ matrix.node-version}}]xunit.xml
if: always()
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Cypress XML Reporter

A JUnit XML reporter for Cypress that includes screenshots, videos, and logs.

![CI](https://github.com/testspace-com/cypress-xml-reporter/actions/workflows/test.yml/badge.svg) [![npm](https://img.shields.io/npm/v/cypress-xml-reporter.svg?style=flat-square)](http://www.npmjs.com/package/cypress-xml-reporter)

This reporter works with [Testspace](https://testspace.com) to publish CI test results that include:

1. Captured screenshot of a test failure
2. Captured video for a suite with one or more failing tests
3. Logs generated using the [cypress terminal reporter](https://www.npmjs.com/package/cypress-terminal-report)


## Installation

```
Expand Down
Loading

0 comments on commit 6e1cd02

Please sign in to comment.