Running formatting check #8
Workflow file for this run
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: Prettier Formatting Check | |
run-name: Running formatting check | |
on: [push] | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- name: Prettier check | |
run: | | |
files=npx prettier . -l | |
echo status=`echo $?`>>"$GITHUB_ENV" | |
echo files=`echo $files`>> "$GITHUB_ENV" | |
- name: generate github check message | |
run: .github/workflows/generateCheck.sh |