-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Beta Test | ||
|
||
on: | ||
workflow_call: | ||
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: 1GP Packaging | ||
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@v2 | ||
- name: Auth to DevHub | ||
run: /usr/local/bin/devhub.sh | ||
- name: Deploy to Packaging Org | ||
run: cci flow run ci_master --org packaging | ||
- name: Build Beta Package | ||
run: cci flow run release_beta --org packaging | ||
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 |