Update update wording #3
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 Format and Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install system dependencies | |
run: sudo apt-get install -y libkrb5-dev | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Run Prettier | |
run: yarn prettier --check './extensions/pearai-extension/**/src/**/*.{ts,tsx}' | |
- name: Run ESLint | |
run: yarn eslint './extensions/pearai-extension/**/src/**/*.{ts,tsx}' --quiet |