Skip to content

Action-Test - [ #] by @MariusStorhaug #376

Action-Test - [ #] by @MariusStorhaug

Action-Test - [ #] by @MariusStorhaug #376

Workflow file for this run

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Get issue file content
id: GetIssueFileContent
uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10
with:
ShowOutput: true
Script: |
tests/Get-IssueFileContent.ps1
- name: Action-Test
id: Action-Test
uses: ./
with:
IssueBody: ${{ fromJson(steps.GetIssueFileContent.outputs.result).issueFileContent }}
- name: Action-Test-Results
uses: PSModule/Invoke-Pester@1fcb663c0efe914e8374d78e16aa7bb907ea2434 # v4.2.3
env:
data: ${{ steps.Action-Test.outputs.data }}