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 }}

View File

@@ -0,0 +1,19 @@
name: Actions Sync E2E Sanity Test
on:
workflow_dispatch:
jobs:
sanity-test:
strategy:
fail-fast: false
matrix:
runson: [ubuntu-latest, macos-latest, windows-latest]
uses: ./.github/workflows/actions-sync-e2e-test-called.yml
with:
runson: ${{ matrix.runson }}
secrets:
ghes_url: ${{ secrets.sanity_test_ghes_url }}
actions_sync_releasedatetime: ${{ secrets.sanity_test_releasedatetime }}
site_admin_token: ${{ secrets.sanity_test_site_admin_token }}