[RN-90] Android 도서관 이용시간 알림 추가 #82
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: 'Check ESLint on Pull Request' | |
on: | |
pull_request: | |
branches: ['develop'] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node 18.16.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18.16.x' | |
cache: 'yarn' | |
env: | |
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | |
- name: Set Yarn Version | |
id: set-version | |
run: | | |
yarn set version 3.6.4 | |
echo "YARN_VERSION=$(yarn -v)" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | |
- name: Get cache dir path | |
id: yarn-cache-dir-path | |
run: echo "CACHE_DIR=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Yarn cache | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.CACHE_DIR }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ steps.set-version.outputs.YARN_VERSION }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}- | |
- name: Install dependencies | |
run: | | |
CACHE_HIT="${{ steps.yarn-cache.outputs.cache-hit }}" | |
NODE_MODULES_EXISTS=$(test -d "node_modules" && echo "true" || echo "false") | |
if [[ "$CACHE_HIT" != 'true' || "$NODE_MODULES_EXISTS" == 'false' ]]; then | |
yarn install | |
fi | |
- name: Check Lint | |
run: yarn lint |