Skip to content

Commit

Permalink
Create beta-test-env.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz authored Nov 22, 2023
1 parent 2b8305b commit 7e4bc59
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/beta-test-env.yml
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

0 comments on commit 7e4bc59

Please sign in to comment.