Skip to content

Test Before After All#9

Closed
Marius Storhaug (MariusStorhaug) wants to merge 1 commit intomainfrom
testBeforeAfterAll
Closed

Test Before After All#9
Marius Storhaug (MariusStorhaug) wants to merge 1 commit intomainfrom
testBeforeAfterAll

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

Description

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI review requested due to automatic review settings October 1, 2025 06:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds test setup and teardown scripts for the testing infrastructure and updates the GitHub workflow to use a different branch reference. The changes establish a basic testing framework with before/after hooks.

  • Added BeforeAll.ps1 and AfterAll.ps1 scripts for test environment setup and teardown
  • Updated GitHub workflow to reference a different branch (copilot/fix-169) instead of v4

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/BeforeAll.ps1 Adds test environment setup script with logging for Environments testing
tests/AfterAll.ps1 Adds test environment teardown script with cleanup logging for Environments testing
.github/workflows/Process-PSModule.yml Updates workflow reference from v4 tag to copilot/fix-169 branch

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@copilot/fix-169
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a branch reference (copilot/fix-169) instead of a version tag (v4) in production workflows is not recommended. Branch references can change unexpectedly, leading to unstable builds. Consider using a specific commit SHA or waiting for an official release tag.

Suggested change
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@copilot/fix-169
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@0123456789abcdef0123456789abcdef01234567

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants