Skip to content

Apt-1811: gtm + apt-1773: lower info style #120

Apt-1811: gtm + apt-1773: lower info style

Apt-1811: gtm + apt-1773: lower info style #120

Workflow file for this run

name: Lint and Format Check
on:
pull_request:
branches: [main]
jobs:
format-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint:check
continue-on-error: false
- name: Format Check
id: format_check
run: |
npm run format
if [[ $(git status --porcelain | wc -l) -gt 0 ]]; then
echo "changed=true" >> $GITHUB_OUTPUT # Use environment file
echo "::error file=:: Files were formatted. Please commit the changes."
exit 1
else
echo "changed=false" >> $GITHUB_OUTPUT # Use environment file
fi