Skip to content

Commit

Permalink
fix(ci): stop using local Prettier server (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschach authored Feb 25, 2023
1 parent 38827f6 commit cb7c62a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
jobs:
format-lint:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
# Checkout the source code
- name: "Checkout source code"
Expand All @@ -39,29 +40,12 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

# Start local Apex parser server for Prettier
- name: "Start local Apex parser server for Prettier"
run: npm run apex:local:start &

# Wait for Apex parser server startup
- name: "Wait for Apex parser server startup"
run: timeout 30 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' 127.0.0.1 2117

# Prettier Apex formatting
- name: "Code formatting EXECUTION with Prettier"
run: npm run prettier:apex:local

# Prettier format check
- name: "Code formatting verification with Prettier"
run: npm run prettier:verify

# Stop local Apex parser server for Prettier
- name: "Stop local Apex parser server for Prettier"
if: always()
run: npm run apex:local:stop
pmd-analysis:
runs-on: ubuntu-latest
#needs: format-lint-apex-lwc
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
# Checkout the source code
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
node_modules
.localdevserver
.sfdx
.sf
.vscode
./*.json
!release-please-config.json

coverage/

Expand Down

0 comments on commit cb7c62a

Please sign in to comment.