Action-Test - [ #] by @MariusStorhaug #122
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Action-Test | |
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
ActionTestBasic: | |
name: Action-Test - [Basic] | |
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: ./ | |
- name: Verify Helpers Module Installation | |
shell: pwsh | |
run: | | |
if (Get-Module -Name Helpers -ListAvailable) { | |
Write-Host "Helpers module successfully installed." | |
} else { | |
throw "Helpers module not found!" | |
} |