-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (53 loc) · 1.83 KB
/
beta-test-env.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Beta Test
on:
workflow_call:
inputs:
env-name:
required: true
default: 1GP Packaging Beta
type: string
debug:
required: false
default: false
type: boolean
secrets:
packaging-org-auth-url:
required: true
dev-hub-auth-url:
required: true
gh-email:
required: true
github-token:
required: true
jobs:
beta-test:
name: "Beta Test"
runs-on: ubuntu-latest
environment: ${{ inputs.env-name }}
container:
image: ghcr.io/muselab-d2x/d2x:latest
options: --user root
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github-token }}
env:
DEV_HUB_AUTH_URL: "${{ secrets.dev-hub-auth-url }}"
PACKAGING_ORG_AUTH_URL: "${{ secrets.packaging-org-auth-url }}"
CUMULUSCI_SERVICE_github: "{ \"username\": \"${{ github.actor }}\", \"token\": \"${{ secrets.github-token }}\", \"email\": \"${{ secrets.gh-email }}\" }"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Auth to DevHub
run: /usr/local/bin/devhub.sh
- name: Deploy to Packaging Org
run: cci flow run ci_master --org packaging $([[ "${{ inputs.debug }}" == "true" ]] && echo " --debug")
- name: Build Beta Package
run: cci flow run release_beta --org packaging $([[ "${{ inputs.debug }}" == "true" ]] && echo " --debug")
shell: bash
- name: Run Beta Test
run: cci flow run ci_beta --org beta
- name: Delete Scratch Org
if: ${{ always() }}
run: |
cci org scratch_delete beta
shell: bash