Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.48 KB

ReadMe.md

File metadata and controls

29 lines (16 loc) · 1.48 KB

Simple Action Scheduled Demo

A simple, and somewhat contrived, demo showing the use of GitHub Actions on a schedule.

The Moving Parts

This is defined in the GitHub Action yaml file and is specified to run on schedule, as opposed to push or pull_request. This is further contrived in that npm executes the default test script, with its output of Error: no test specified.

Usage

GIF of person asking 'but why?'

If you're wondering why to use a scheduled action, there are some use cases for scheduled testing. This would likely not have anything to do with unit tests, but with integration tests or a generic browser test involving production site uptime, etc. This is not an ideal form of testing, but could be a stop gap under certain use cases.

Example

You can see the scheduled executions under the Actions tab, filtering on event:schedule.

screen shot of github actions screen for this repo, showing multiple events triggered by schedule

References

License

MIT