Globalpipe를 지워버린 것을 복구 #25
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: CI Pipeline | |
on: | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
branches: | |
- develop | |
- main | |
jobs: | |
build: | |
name: Lint, Build and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: [ frontend, backend ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Check for changes in ${{ matrix.project }} | |
id: changes | |
run: | | |
if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -q "^${{ matrix.project }}/"; then | |
echo "changed=true" >> $GITHUB_ENV | |
else | |
echo "changed=false" >> $GITHUB_ENV | |
fi | |
- name: Install Dependencies for ${{ matrix.project }} | |
if: env.changed == 'true' | |
run: yarn install | |
working-directory: ${{ matrix.project }} | |
- name: Lint ${{ matrix.project }} | |
if: env.changed == 'true' | |
run: yarn format-check | |
working-directory: ${{ matrix.project }} | |
- name: Build ${{ matrix.project }} | |
if: env.changed == 'true' | |
run: yarn build | |
working-directory: ${{ matrix.project }} | |
- name: Test ${{ matrix.project }} | |
if: env.changed == 'true' | |
run: yarn test | |
working-directory: ${{ matrix.project }} |