feat: zod를 이용한 유효성 검사를 추가합니다. #16
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: Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
qodana: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
# Install pnpm | |
- name: Install pnpm | |
run: | | |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm | |
# Cache pnpm modules | |
- name: Cache pnpm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
# Install dependencies with pnpm | |
- name: Install dependencies | |
run: pnpm install | |
# Run Qodana Scan | |
- name: 'Qodana Scan' | |
uses: JetBrains/[email protected] | |
with: | |
config: ../../qodana.yaml # Use the configuration file | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |