add sanity testing workflow and docs

Signed-off-by: Florian Wagner <h2floh@github.com>
This commit is contained in:
Florian Wagner
2022-11-22 08:18:05 +00:00
parent b4b91e9993
commit 8decd6ca07
5 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
name: Actions Sync E2E Sanity Test Reusable
on:
workflow_call:
inputs:
runson:
type: string
required: true
secrets:
ghes_url:
required: true
actions_sync_releasedatetime:
required: true
site_admin_token:
required: true
jobs:
execute:
runs-on: ${{ inputs.runson }}
steps:
- uses: actions/checkout@v3
- name: Bootstrap
run: |
.\script\bootstrap-sanity-test.ps1
shell: pwsh
env:
RELEASEDATE: ${{ secrets.actions_sync_releasedatetime }}
- name: Test execution
run: |
.\script\execute-sanity-test.ps1
shell: pwsh
env:
TOKEN: ${{ secrets.site_admin_token }}
TEST_INSTANCE_URL: ${{ secrets.ghes_url }}