Skip to content

feat: Integrate CircleCI #17

feat: Integrate CircleCI

feat: Integrate CircleCI #17

name: Lint and Prettier Check
on:
pull_request:
branches:
- main
jobs:
lint-and-prettier-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Read Node.js version from .nvmrc
id: nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: yarn install
- name: Run lint check
run: yarn lint
continue-on-error: false
- name: Check formatting
run: yarn prettier --check .
continue-on-error: false