feat(post): 조회수 기능 추가 (#17) #9
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: Build Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- synchronize | |
- opened | |
- reopened | |
- ready_for_review | |
branches: | |
- main | |
env: | |
CI: false | |
jobs: | |
build: | |
name: Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Prepare Yarn version | |
run: corepack prepare [email protected] --activate | |
- name: Verify Yarn Version | |
run: yarn --version | |
- name: Install Dependencies | |
run: yarn install | |
- name: Generate Astro content types | |
run: yarn astro sync | |
- name: Typecheck | |
if: always() | |
run: | | |
if git diff --name-only --diff-filter=d HEAD^1 | grep -q -E "(\.[jt]s$|\.tsx$|^yarn\.lock$|^tsconfig\.json$)"; then | |
NODE_OPTIONS=--max-old-space-size=8192 yarn run typecheck --extendedDiagnostics | |
fi |