psake GitHub Action
This official psake GitHub Action allow you to run psake tasks as part of your GitHub workflow.
Actions
Task
Runs one or more psake tasks defined in a psakeFile.ps1 in the root of the repository.
The file containing your psake tasks can be overridden via environment variables.
Success Criteria
This action succeeds if the psake task(s) complete without error.
Usage
action "psake test" {
# Replace <latest tag> with the latest tag from
# https://github.com/devblackops/psake-github-action/releases
uses = "devblackops/psake-github-action@<latest tag>"
# If you need to change the default psakeFile name, PSDepend requirements file,
# or skip requirements installation entirely, specify here.
# See Environment Variables below for details.
env = {
PSAKE_FILE = "./psakeFile.ps1"
}
# The psake task(s) to execute
args = ["Test"]
}Environment Variables
| Name | Default | Description |
|---|---|---|
| PSAKE_FILE | "./psakeFile.ps1" | The default psake task file to execute |
| PSDEPEND_FILE | "./requirements.psd1" | The default PSDepend file to install dependencies from |
| SKIP_REQS | "false" | Set to "true" to skip installing dependencies via PSDepend |
Arguments
Arguments to the Task action determine what psake tasks to execute.
By default, psake will execute a task called Default that is defined in the psakeFile.
Execute the test psake task.
action "psake test" {
...
args = ["Test"]
}Execute the init, build, and test psake tasks.
action "psake test" {
...
args = ["init, build, test"]
}
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
