Skip to content

feat: add automated test workflow for certificate validation#11

Open
oto-macenauer-absa wants to merge 5 commits into
masterfrom
feat/add-test-workflow
Open

feat: add automated test workflow for certificate validation#11
oto-macenauer-absa wants to merge 5 commits into
masterfrom
feat/add-test-workflow

Conversation

@oto-macenauer-absa
Copy link
Copy Markdown
Collaborator

@oto-macenauer-absa oto-macenauer-absa commented Jun 5, 2026

Summary

  • Adds .github/workflows/test.yml with 6 test scenarios covering valid, expiring-soon, expired, not-yet-valid, missing file, and multi-cert with valid replacement
  • Generates fixture certificates at runtime using openssl req and openssl ca for date-controlled certs
  • Runs on both ubuntu-latest and macos-latest to catch date portability regressions
  • Asserts both exit codes and step-summary content per test case

Closes #6

Release Notes

  • Added automated test workflow for the certificate validation action covering 6 scenarios on Linux and macOS

Test plan

  • Verify workflow passes on ubuntu-latest
  • Verify workflow passes on macos-latest
  • Verify each of the 6 test scenarios produces expected exit code and summary content

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

Adds a CI workflow to exercise the composite validate-certificates action across multiple certificate validity scenarios on both Linux and macOS runners.

Changes:

  • Introduces .github/workflows/test.yml to generate certificate fixtures at runtime and validate action behavior across 6 scenarios.
  • Updates .gitignore to exclude generated test fixtures (tests/fixtures/) from local working copies.

Reviewed changes

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

File Description
.github/workflows/test.yml New cross-platform workflow that generates cert fixtures and asserts expected outcomes/step-summary content for key scenarios.
.gitignore Ignores runtime-generated test fixture directory to keep the repo clean for local runs.

Comment on lines +37 to +40
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Even the referenced code clearly says actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd, nothing to fix here

The refactor that extracted inline bash to validate.sh dropped
fail_on_warn support, output variable emissions, and the metrics
table from the step summary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Add automated test workflow and pin example third-party actions to commit SHAs

2 participants