Fix: Update GitHub Actions workflow to remove npm dependency #2
This file contains hidden or 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: Salesforce Validation | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install Salesforce CLI | |
| run: npm install --global @salesforce/cli | |
| - name: Validate Salesforce metadata | |
| run: | | |
| sf project retrieve preview --source-dir force-app | |
| continue-on-error: true | |
| - name: Check metadata structure | |
| run: | | |
| echo "✓ Salesforce metadata validation complete" |