test deploy #5
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: Validate pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [opened, synchronize] | |
paths: | |
- 'force-app/**' | |
jobs: | |
validate-deployment: | |
runs-on: ubuntu-latest | |
container: | |
image: salesforce/cli:latest-slim | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 'Authenticate using SFDX_AUTH_URL' | |
shell: bash | |
run: | | |
echo ${{ secrets.SFDX_AUTH_URL }} | sf org login sfdx-url -s -u | |
- name: 'Validate' | |
run: | | |
sf project deploy validate -d force-app/ -l RunLocalTests -w 30 |