Cloud-Code-Academy
/
developer-kickstart-cohort12-module4-dml-operation-developer-kickstart-week4
Public
generated from Cloud-Code-Academy/developer-kickstart-week4
-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (27 loc) · 1 KB
/
week4_test_manual.yml
File metadata and controls
35 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Week 4 Run Apex Unit Tests Manually
on:
workflow_dispatch:
inputs:
sfdx_auth_url:
description: "SFDX Auth URL"
required: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install sfdx with npm
run: |
npm i @salesforce/cli --global
- name: Store SFDX Auth URL In File
run: | #sfdx force:org:display --verbose > Sfdx Auth URL
echo "${{ github.event.inputs.sfdx_auth_url }}" > sfdxauth.txt
- name: Add SFDX Org
run: |
sf force auth sfdxurl store -f sfdxauth.txt -a org
- name: Deploy classes to org
run: |
sf force source deploy -u org -p force-app/main/default/classes/
- name: Run Apex Unit Tests
run: |
sf apex run test -r human -c --wait 10 -o org -n DMLOperationsTest