Skip to content

Commit

Permalink
chore: workflow가 프론트엔드 파일 변경시에만 실행 되도록 설정 (#284)
Browse files Browse the repository at this point in the history
* chore: workflow가 프론트엔드 파일 변경시에만 실행 되도록 설정

* fix: 잘못 된 Job의 이름을 변경

* refactor: change target branch

* refactor: workflow의 파일 체크 경로를 올바르게 수정
  • Loading branch information
yujo11 authored Aug 1, 2021
1 parent 4679f0f commit f7bf35b
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
name: FE Test
name: CI

on: [pull_request]

jobs:
build:
name: Test
changes:
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.filter.outputs.frontend }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
frontend:
- 'frontend/**'
FE-Test:
needs: changes
if: ${{ needs.changes.outputs.frontend == 'true' }}
runs-on: ubuntu-latest
env:
working-directory: ./frontend

strategy:
matrix:
node-version: [14.16.x]

steps:
- uses: actions/checkout@v2

- name: Node Version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: yarn install
run: yarn install
working-directory: ${{ env.working-directory }}
Expand Down

0 comments on commit f7bf35b

Please sign in to comment.