feat: Updating the type of text size to use only valid sizes. (#1676) #1540
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: ['master', 'v7'] | |
push: | |
branches: ['*'] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [14.18] | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install codemods dependencies | |
working-directory: './codemods' | |
run: 'yarn install --frozen-lockfile' | |
- name: Install docs dependencies | |
working-directory: './docs' | |
run: 'yarn install --frozen-lockfile' | |
- name: Run build | |
run: yarn run build | |
- name: Run prettier | |
run: yarn run prettier 'src/**/*.{js,ts,tsx}' --check | |
- name: Run test | |
run: yarn run test | |
- name: Run codemods tests | |
working-directory: './codemods' | |
run: yarn test | |
- name: Run docs lint | |
working-directory: './docs' | |
run: yarn run lint | |
- name: Run size-limit | |
run: yarn run size-limit |