All prettier violations will now be reported, not just what eslint checks. Reviewed-on: #1523 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
26 lines
771 B
YAML
26 lines
771 B
YAML
name: Build
|
|
on:
|
|
push: {}
|
|
pull_request: {}
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.2
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v4.0.2
|
|
- run: npm ci
|
|
- run: cp config.json.example config.json
|
|
- run: npm run verify
|
|
- run: npm run lint:ci
|
|
- run: npm run prettier
|
|
- name: Fail if there are uncommitted changes
|
|
run: |
|
|
if [[ -n "$(git status --porcelain)" ]]; then
|
|
echo "Uncommitted changes detected:"
|
|
git status
|
|
git diff
|
|
exit 1
|
|
fi
|