add sanity testing workflow and docs
Signed-off-by: Florian Wagner <h2floh@github.com>
This commit is contained in:
34
.github/workflows/actions-sync-e2e-test-called.yml
vendored
Normal file
34
.github/workflows/actions-sync-e2e-test-called.yml
vendored
Normal 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 }}
|
||||
19
.github/workflows/actions-sync-e2e-test-caller.yml
vendored
Normal file
19
.github/workflows/actions-sync-e2e-test-caller.yml
vendored
Normal 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 }}
|
||||
|
||||
Reference in New Issue
Block a user