Skip to content

feat(ci.yaml): 빌드 스크립트 추가 #6

feat(ci.yaml): 빌드 스크립트 추가

feat(ci.yaml): 빌드 스크립트 추가 #6

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: jobs
on:
pull_request:
branches:
- dev
jobs:
cache-and-install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
check-lint:
needs: cache-and-install
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Check eslint
run: pnpm lint
- name: Check prettier
run: pnpm prettier
- name: Check style-lint
run: pnpm lint:style
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package: [ 'design-system', 'missionary-admin', 'missionary-app' ]
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
run: pnpm run build --filter ${{ matrix.package }}