Skip to content

Commit

Permalink
Update check_pr to only run eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rutajdash committed Aug 26, 2021
1 parent c561a54 commit bda22fe
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,29 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint_flags: "client/"

prettier:
name: Prettier Check
runs-on: ubuntu-latest
if: github.event.review.state == 'approved'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "14"
# prettier:
# name: Prettier Check
# runs-on: ubuntu-latest
# if: github.event.review.state == 'approved'
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# with:
# ref: ${{ github.head_ref }}

- name: Install Dependencies
run: cp client/package.json ./ && yarn install
# - name: Setup Node.js
# uses: actions/setup-node@v1
# with:
# node-version: "14"

# - name: Prettify code
# uses: creyD/prettier_action@dev
# with:
# prettier_options: -c ./client/.prettierrc
# file_pattern: ./client/.
# dry: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Install Dependencies
# run: cp client/package.json ./ && yarn install

- name: Run linters
uses: wearerequired/lint-action@v1
with:
prettier: true
prettier_args: "-c ./client/.prettierrc ./client/."
# - name: Prettify code
# uses: creyD/prettier_action@dev
# with:
# prettier_options: -c ./client/.prettierrc
# file_pattern: ./client/.
# dry: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bda22fe

Please sign in to comment.