Skip to content

Add ExpandSectionWithSwitch component #5939

Add ExpandSectionWithSwitch component

Add ExpandSectionWithSwitch component #5939

Workflow file for this run

name: CI
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
jobs:
i18n:
name: i18n
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Yarn
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- name: Check i18n
shell: bash
run: |
yarn i18n
GIT_STATUS="$(git status --short --untracked-files locales)"
if [ -n "$GIT_STATUS" ]; then
echo "i18n files are not up to date. Commit them to fix."
git diff
exit 1
fi
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Yarn
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
unit-test:
name: unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Yarn
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- name: Run Unit Tests
run: yarn test-cov
- name: Coverage Upload
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}