-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.98 KB
/
Copy pathWorkflow-Test-WithManifest.yml
File metadata and controls
52 lines (47 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Workflow-Test [WithManifest]
run-name: 'Workflow-Test [WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}'
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/**'
- '!.github/workflows/Release.yml'
- '!.github/workflows/Linter.yml'
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
statuses: write
pages: write
id-token: write
jobs:
WorkflowTestWithManifest:
uses: ./.github/workflows/workflow.yml
secrets:
APIKey: ${{ secrets.APIKey }}
# The calling workflow chooses which secrets to expose to the test jobs. Names are
# caller-defined and read by the module's Pester tests via $env:<name>. CUSTOM_TEST_ENV_VAR
# is a plain literal that proves arbitrary, caller-defined names flow through end to end.
# The folded '>-' block with flat indentation produces a SINGLE-LINE secret value; a literal
# '|' multi-line value makes GitHub register every line as its own mask and over-masks logs.
TestSecrets: >-
{
"TEST_APP_ENT_CLIENT_ID": ${{ toJSON(secrets.TEST_APP_ENT_CLIENT_ID) }},
"TEST_APP_ENT_PRIVATE_KEY": ${{ toJSON(secrets.TEST_APP_ENT_PRIVATE_KEY) }},
"TEST_APP_ORG_CLIENT_ID": ${{ toJSON(secrets.TEST_APP_ORG_CLIENT_ID) }},
"TEST_APP_ORG_PRIVATE_KEY": ${{ toJSON(secrets.TEST_APP_ORG_PRIVATE_KEY) }},
"TEST_USER_ORG_FG_PAT": ${{ toJSON(secrets.TEST_USER_ORG_FG_PAT) }},
"TEST_USER_USER_FG_PAT": ${{ toJSON(secrets.TEST_USER_USER_FG_PAT) }},
"TEST_USER_PAT": ${{ toJSON(secrets.TEST_USER_PAT) }},
"CUSTOM_TEST_ENV_VAR": "caller-provided-value"
}
with:
WorkingDirectory: tests/srcWithManifestTestRepo
ImportantFilePatterns: |
^src/
^README\.md$
^\.github/workflows/(?!Release\.yml$|Linter\.yml$)