Skip to content

Merge pull request #1248 from chammond-tz/fix-multi-reporter-with-jso… #1075

Merge pull request #1248 from chammond-tz/fix-multi-reporter-with-jso…

Merge pull request #1248 from chammond-tz/fix-multi-reporter-with-jso… #1075

name: Build cypress-slack-reporter-old
on:
push:
pull_request:
branches: [main]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
ENV_SUT: ${{ secrets.ENV_SUT }}
CI_PROVIDER_TO_TEST: 'github'
defaults:
run:
working-directory: cypress-slack-reporter-old
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: cypress-slack-reporter-old/yarn.lock
- run: yarn install
- run: npm run lint
- run: npm run compile
- run: npm run test
- run: npm test
- run: make test
- run: make combine-reports && make generate-report
- name: get artifacts 1
uses: actions/upload-artifact@v3
with:
name: test-output-1
path: |
cypress/reports
cypress/videos
cypress/screenshots
mochareports
- run: npm run slack-ts
- run: npm run slack-js
- run: npm run slack-ts-opts
- run: npm run slack-js-opts
- run: npm run slack-js-opts-test-passed
- run: npm run slack-js-opts-test-failed
- run: npm run slack-js-opts-build-failed
- run: npm run cli
- name: get artifacts 2
uses: actions/upload-artifact@v3
with:
name: test-output-2
path: |
src/slack/test
cypress/reports/mocha