Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Test with PAT
  • Loading branch information
MariusStorhaug committed Nov 10, 2024
commit 661be1e2acaf6bcfb4591534e69c72a4ef647eca
25 changes: 19 additions & 6 deletions .github/workflows/Action-Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
uses: ./
with:
Script: |
LogGroup "My group" {
"This is a group"
LogGroup "Get-GitHubZen" {
Get-GitHubZen
}

ActionTestWithoutToken:
Expand All @@ -57,12 +57,25 @@ jobs:
with:
Token: ''
Script: |
LogGroup "Get-GitHubZen" {
Get-GitHubZen
LogGroup "My group" {
"This is a group"
}

LogGroup "Get-GitHubOctocat" {
Get-GitHubOctocat
ActionTestWithPAT:
name: Action-Test - [WithPAT]
runs-on: ubuntu-latest
steps:
# Need to check out as part of the test, as its a local action
- name: Checkout repo
uses: actions/checkout@v4

- name: Action-Test
uses: ./
with:
Token: ${{ secrets.TEST_PAT }}
Script: |
LogGroup "Get-GitHubUser" {
Get-GitHubUser
}

ActionTestWithGitHubApp:
Expand Down