Repository navigation
Maester Action v2.0.0: runs Maester 3
Maester 3.0 is out, and v2 of the action runs it by default. Maester 3 runs the built-in tests from inside the module, so your repository only needs the workflow file.
Upgrade
-
Change the
uses:line to@v2:- uses: maester365/maester-action@v1.2.0 + uses: maester365/maester-action@v2
-
Remove
include_public_tests. Maester 3 always runs the built-in tests from the module, so this input no longer does anything (the action warns if it is set). -
Check
include_private_tests(defaulttrue). It decides whether the action checks out your repository:- Your repository has a
maester-config.jsonor custom tests: leave it out, or keep ittrue. - Your repository only holds the workflow file: set
include_private_tests: false.
- Your repository has a
A typical workflow after the upgrade:
- name: Run Maester 🔥
uses: maester365/maester-action@v2
with:
tenant_id: ${{ secrets.AZURE_TENANT_ID }}
client_id: ${{ secrets.AZURE_CLIENT_ID }}
include_private_tests: false # only the workflow file in this repoIf you use Dependabot for GitHub Actions, it will open the @v2 pull request for you. If you're moving to Maester 3, remove include_public_tests in the same PR; if you're staying on Maester 2, keep it and add maester_major_version: "2".
@v2 always points at the newest 2.x release, so you get fixes without editing your workflow.
Who is affected
| Your workflow uses | What happens |
|---|---|
@v1.2.0 or older |
With maester_version: latest you have been running Maester 3.0 since 30 November through v1 code that predates it. Move to @v2. |
@main |
You now run Maester 3. Switch to @v2 so a future major version doesn't reach you unannounced. |
@v2 |
Nothing to do. |
Staying on Maester 2
Use @v2 with maester_major_version: "2". Pinning the action to v1 does not keep you on Maester 2, because v1 installs the newest Maester release. Keep the Maester 2 inputs you already use, such as include_public_tests. If you pin an exact maester_version such as 2.3.0, you keep running that release; set it to latest, or remove it, to get the newest 2.x.
What's new in v2
maester_major_versiondefaults to3(was2).- Maester 3 inputs:
skip_builtin_tests,test_ids,exclude_test_ids,config_path,install_pester. - An exact Maester 2
maester_version(for example2.3.0) now needsmaester_major_version: "2". - The
AllandFulltags are gone in Maester 3. Useinclude_preview_testsandinclude_longrunning_testsinstead. - Custom Pester-format tests (
*.Tests.ps1) need Pester 5.7.1 or later, which the action installs automatically when it finds them.
Read Upgrading from Maester 2.x before you switch, and try it with workflow_dispatch on a branch first.