Skip to content

api 타입 변경

api 타입 변경 #374

name: 'test-lint-build'
on:
pull_request:
branches-ignore:
- 'main'
jobs:
test:
name: Test lint, build
runs-on: ubuntu-latest
env:
working-directory: ./client
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
- name: Generate Environment Variables File for Production
run: echo "NEXT_PUBLIC_OPEN_API=$NEXT_PUBLIC_OPEN_API" >> .env.production
working-directory: ${{ env.working-directory }}
env:
NEXT_PUBLIC_OPEN_API: ${{ secrets.NEXT_PUBLIC_OPEN_API }}
- name: Install Dependencies
run: yarn install
working-directory: ${{ env.working-directory }}
- run: yarn lint
if: ${{ always() }}
working-directory: ${{ env.working-directory }}
- run: yarn build
if: ${{ always() }}
working-directory: ${{ env.working-directory }}