This Action for npm enables arbitrary actions with the npm
command-line client, including testing with cypress.io and publishing to a registry.
An example workflow to build, unit test, and E2E test a project with cypress.io follows:
workflow "Build, Test, and Publish" {
on = "push"
resolves = ["Publish"]
}
action "Build" {
uses = "actions/npm@master"
args = "install"
}
action "Test" {
needs = "Build"
uses = "actions/npm@master"
args = "test"
}
action "E2E Tests" {
uses = "bartlett705/npm-cy@f69478046d80aef1be0e17582c189a59bbfc9aa1"
needs = ["Unit Tests"]
args = "run cy:run"
}
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.