feat: 아이콘 변경사항을 적용한다 (#969) #3339
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout [Pull Request] | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: actions/checkout@v2 | |
name: Checkout [Default Branch] | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v2 | |
id: setSHAs | |
with: | |
main-branch-name: main | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install Packages | |
run: yarn install --immutable | |
- name: Lint Affected Project | |
run: yarn nx affected --target=lint | |
- name: Test Affected Project | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: yarn nx collect-coverage testing --ci --coverage-reporter=lcov --output-path=coverage/lcov.info | |
- name: Typecheck Affected Project | |
run: yarn nx affected --target=typecheck --parallel=1 | |
- name: Upload coverage to Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
git-commit: ${{ steps.setSHAs.outputs.head }} | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: yarn | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Publish to Chromatic | |
if: github.ref != 'refs/heads/main' | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_TOKEN }} | |
onlyChanged: true | |
env: | |
NODE_OPTIONS: --max-old-space-size=8192 | |
- name: Publish to Chromatic and auto accept changes | |
if: github.ref == 'refs/heads/main' | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_TOKEN }} | |
autoAcceptChanges: true | |
env: | |
NODE_OPTIONS: --max-old-space-size=8192 | |
# expo: | |
# runs-on: ubuntu-latest | |
# if: github.ref == 'refs/heads/main' | |
# steps: | |
# - uses: actions/checkout@v1 | |
# - run: yarn | |
# - name: Update Vibrant Example App | |
# run: yarn nx update vibrant-example-app --branch preview | |
# env: | |
# EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} |