Skip to content

Feature: Add function to reset widget #54

Feature: Add function to reset widget

Feature: Add function to reset widget #54

Workflow file for this run

name: Build and test package
on:
pull_request:
types: [opened, synchronize, ready_for_review]
push:
branches:
- main
- master
- develop
- 'release/**'
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yarn install and build rollup
run: |
yarn install:frozen
yarn build
- uses: actions/upload-artifact@main
with:
name: artifact-built-by-yarn
path: dist/
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@main
with:
name: artifact-built-by-yarn
path: dist/
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: yarn install for testing
run: |
yarn install:test:frozen
- name: run unit tests
working-directory: ./playground
run: |
yarn test
- name: run cypress
uses: cypress-io/github-action@v4.2.0
with:
working-directory: ./playground
start: yarn start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
env:
REACT_APP_FC_DEMO_SITE_KEY: ${{secrets.AACN_USE_FRIENDLY_CAPTCHA_FC_DEMO_SITE_KEY}}
CI: true