Update babel monorepo #1327
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] | |
jobs: | |
setup: | |
name: SetUp | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
test: | |
name: Test | |
needs: | |
- setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Restore node modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: Test | |
run: yarn test | |
build: | |
name: Build | |
needs: | |
- setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Restore node modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: Build | |
run: yarn build | |
build-storybook: | |
name: Build Storybook | |
needs: | |
- setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Restore node modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: Build Storybook | |
run: yarn build-storybook | |
# lint-ts: | |
# name: Lint TypeScript | |
# needs: | |
# - setup | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# cache: yarn | |
# - name: Restore node modules | |
# uses: actions/cache@v3 | |
# with: | |
# path: "**/node_modules" | |
# key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-node-modules- | |
# - name: Lint TypeScript | |
# run: yarn lint:ts | |
# lint-css: | |
# name: Lint CSS | |
# needs: | |
# - setup | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# cache: yarn | |
# - name: Restore node modules | |
# uses: actions/cache@v3 | |
# with: | |
# path: "**/node_modules" | |
# key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-node-modules- | |
# - name: Lint CSS | |
# run: yarn lint:css | |
# prettier: | |
# name: Prettier Check | |
# needs: | |
# - setup | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# cache: yarn | |
# - name: Restore node modules | |
# uses: actions/cache@v3 | |
# with: | |
# path: "**/node_modules" | |
# key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-node-modules- | |
# - name: Prettier Check | |
# run: yarn prettier --check ./src |