Skip to content

파이프라인 구축 #57

파이프라인 구축

파이프라인 구축 #57

Workflow file for this run

name: CI
permissions:
pull-requests: write
contents: read
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
if: ${{ github.actor != 'l10nbot' }} # Avoid running for 'l10nbot'
runs-on: ubuntu-latest
timeout-minutes: 15
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Enable Corepack (for Yarn 2)
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Cache Yarn dependencies
id: cache
uses: actions/cache@v3
with:
path: |
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
key: ${{ runner.os }}-yarn-berry-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-berry-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Install TurboRepo
run: yarn add turbo --dev
- name: Prettier check
run: yarn format --check
- name: Lint
run: yarn lint
- name: Run tests
run: yarn turbo run test --filter=@zagdang/ui -- --runInBand --ci
- name: Build project
run: |
yarn turbo build --parallel
- name: Build Storybook
run: yarn turbo run build-storybook