Skip to content

🩹 [Patch]: Add tests for more use-cases #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/Action-Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,21 @@ jobs:
- name: Action-Test
uses: ./
with:
Token: ${{ secrets.TEST_PAT }}
Token: ${{ secrets.TEST_USER_PAT }}
Script: |
LogGroup 'Get-GitHubUser' {
Get-GitHubUser | Format-Table -AutoSize
}

ActionTestWithFGPAT:
name: Action-Test - [WithFGPAT]
strategy:
matrix:
include:
- name: Action-Test - [WithUserFGPAT]
Token: TEST_USER_USER_FG_PAT
- name: Action-Test - [WithOrgFGPAT]
Token: TEST_USER_ORG_FG_PAT
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
# Need to check out as part of the test, as its a local action
Expand All @@ -129,14 +136,23 @@ jobs:
- name: Action-Test
uses: ./
with:
Token: ${{ secrets.TEST_FG_PAT }}
Token: ${{ secrets[matrix.Token] }}
Script: |
LogGroup 'Get-GitHubUser' {
Get-GitHubUser | Format-Table -AutoSize
}

ActionTestWithGitHubApp:
name: Action-Test - [GitHubApp]
strategy:
matrix:
include:
- name: Action-Test - [GitHubAppEnt]
clientID: TEST_APP_ENT_CLIENT_ID
privateKey: TEST_APP_ENT_PRIVATE_KEY
- name: Action-Test - [GitHubAppOrg]
clientID: TEST_APP_ORG_CLIENT_ID
privateKey: TEST_APP_ORG_PRIVATE_KEY
name: ${{ matrix.name }}
runs-on: ubuntu-latest
steps:
# Need to check out as part of the test, as its a local action
Expand All @@ -146,8 +162,8 @@ jobs:
- name: Action-Test
uses: ./
with:
ClientID: ${{ secrets.TEST_APP_CLIENT_ID }}
PrivateKey: ${{ secrets.TEST_APP_PRIVATE_KEY }}
ClientID: ${{ secrets[matrix.clientID] }}
PrivateKey: ${{ secrets[matrix.privateKey] }}
Script: |
LogGroup 'Get-GitHubApp' {
Get-GitHubApp | Format-Table -AutoSize
Expand Down