Skip to content

Commit

Permalink
Add CI prettify step
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledEmaraDev committed Jan 17, 2021
1 parent 92bb175 commit 8a20269
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,35 @@ name: Frontend CI

on:
push:
branches: [master, frontend]
branches: [master]
pull_request:
branches: [master]

jobs:
build:
lint:
runs-on: ubuntu-latest

defaults:
run:
working-directory: frontend

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: "14"
- run: npm ci
- run: npm run format
- run: npm run lint
- run: npm run build
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write frontend/**/*.{js,jsx,md}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - run: npm run format
# - run: npm run build
# - run: npm test

0 comments on commit 8a20269

Please sign in to comment.