Skip to content

Delete .github/workflows/setup-workflows.yml #277

Delete .github/workflows/setup-workflows.yml

Delete .github/workflows/setup-workflows.yml #277

Workflow file for this run

name: Test all
on:
pull_request:
branches:
- master
- stable
- major
push:
tags:
- v*
branches:
- master
- stable
- major
jobs:
# Runs unit tests for all configured React version
test-units:
runs-on: ubuntu-20.04
name: Run unit tests
steps:
- name: Checkout code
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 #v2
- name: Setup node
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 #v2
with:
node-version: 14
- name: Setup Chrome
uses: browser-actions/setup-chrome@4f8e94349a351df0f048634f25fec36c3c91eded #v2.1.1
with:
chrome-version: stable
# Set variables required for further steps.
# CHROME_BIN is required by Karma.
# REACT_VERSION is set to "current" for pull request events and "all" for other events.
- name: Set test variables
run: |
export CHROME_BIN=$(which chrome);
if [ -z ${GITHUB_HEAD_REF} ]; then echo "REACT_VERSION=all"; else echo "REACT_VERSION=current"; fi >> $GITHUB_ENV;
- name: Install dependencies
run: npm install
# Run tests with the help of Xvfb, since there is no screen output available (required for locally installed browsers).
- name: Run tests
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d #v1
env:
CKEDITOR_LICENSE_KEY: ${{ secrets.CKEDITOR_LICENSE_KEY }}
with:
run: npm run test:units -- react ${{ env.REACT_VERSION }}