Skip to content

(WEB-92) run prettier #278

(WEB-92) run prettier

(WEB-92) run prettier #278

Workflow file for this run

---
jobs:
contrib-readme-job:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
name: A job to automate contrib in readme
steps:
- uses: actions/checkout@v2
- name: Contribute List
uses: akhilmhdh/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
eslint-run-push:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Run ESLint
run: npm install
npx eslint .
prettier-format-check:
name: Check code formatting with Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm install
- name: Run Prettier Check
run: npx prettier --check .
typescript-run-push:
name: Setup TypeScript on Main Push
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install TypeScript
run: npm install -g typescript
- name: Check TypeScript Version
run: tsc --version
on:
pull_request:
push: