우당탕탕 폴더링 구조 수정 #181
Workflow file for this run
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: frontend-integration | |
on: | |
pull_request: | |
branches: | |
- develop-frontend | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# - name: Check Caching | |
# uses: actions/cache@v3 | |
# with: | |
# path: ~/.npm | |
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.15.0' | |
- name: Install Dependencies | |
run: npm install --frozen-lockfile | |
# run: npm i | |
- name: Create .env file | |
run: | | |
echo "BASE_URL=${{ secrets.BASE_URL }}" > .env | |
echo "REACT_APP_GOOGLE_ANALYTICS=${{ secrets.REACT_APP_GOOGLE_ANALYTICS }}" >> .env | |
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env | |
echo "SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env | |
- name: Clear cache | |
run: npx jest --clearCache | |
- name: Run tests | |
# run: npm test -- --config jest.config.json | |
run: npm run test | |
- name: Run linter | |
run: npm run lint |