Skip to content

hotfix: 서버쪽 익텐에서 또는 외부 호출에서 왜 401을 계속 만드는가?! 의심 부분 해결 #18

hotfix: 서버쪽 익텐에서 또는 외부 호출에서 왜 401을 계속 만드는가?! 의심 부분 해결

hotfix: 서버쪽 익텐에서 또는 외부 호출에서 왜 401을 계속 만드는가?! 의심 부분 해결 #18

Workflow file for this run

name: Test CI
on:
workflow_dispatch:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 21, 22, 23]
fail-fast: false # 한 버전 실패 시 전체 중단 방지
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable Corepack
run: corepack enable
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "store-path=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.store-path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create .env file
run: |
echo "DATABASE_NAME=${{ secrets.DATABASE_NAME }}" >> .env
echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env
echo "POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}" >> .env
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
echo "POSTGRES_PORT=${{ secrets.POSTGRES_PORT }}" >> .env
- name: Run lint
run: pnpm run lint
- name: Run tests
run: pnpm run test
- name: Run build
run: pnpm run build