Feature #191: playwright 적용해서 e2e 테스트하기 (#203) #142
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: Froxy-CI Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
fe-ci: | |
runs-on: ubuntu-20.04 | |
if: contains(github.event.pull_request.labels.*.name, '💻 Fe') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # 적절한 Node.js 버전으로 설정 | |
cache: 'pnpm' # pnpm 캐싱 활성화 | |
- name: Create .env file | |
run: | | |
echo "${{ secrets.FE_ENV }}" > apps/frontend/.env | |
- name: Install dependencies #라이브러리설치 | |
run: | | |
pnpm install --no-frozen-lockfile | |
- name: Run lint & Turbo build | |
run: | | |
pnpm lint --filter=frontend | |
pnpm turbo run build --filter=frontend |