github-actions-ci-templates
github-actions-ci-templates copied to clipboard
✅ A repository of templates for GitHub Actions CI configurations.
GitHub Actions CI Templates
A repository of templates for GitHub Actions CI configurations.
The Templates
- JavaScript
- Node.js Cross-Platform:
- Runs builds on:
- Ubuntu (Latest),
- Windows (Latest),
- macOS (Latest)
- Using all versions of Node.js that are currently supported by the Node.js project,
- Using
npm installandnpm test.
- Runs builds on:
- Node.js Cross-Platform (using Yarn)
- Runs builds on:
- Ubuntu (Latest),
- Windows (Latest),
- macOS (Latest)
- Using all versions of Node.js that are currently supported by the Node.js project,
- Using
yarn installandyarn test.
- Runs builds on:
- Node.js Cross-Platform (using pnpm):
- Runs builds on:
- Ubuntu (Latest),
- Windows (Latest),
- macOS (Latest)
- Using all versions of Node.js that are currently supported by the Node.js project.
- Using
pnpm installandpnpm test.
- Runs builds on:
- Node.js Cross-Platform:
How to use the Templates
Add the appropriate YAML to your repository under the .github/workflows/ path, naming the YAML whatever you'd like to name it. I generally like to follow the language-platform(s)-ci.yml pattern, but your mileage may vary.
For example, if you wanted to use the nodejs-cross-platform-ci.yml template, you'd add it in:
- .github/
- workflows/
- nodejs-cross-platform-ci.yml # you can rename this whatever you'd like
How to improve the Templates
If you'd like to improve the templates provided, you're more than welcome to submit a PR! If you notice a template that's entirely missing but you'd like to see, feel free to send a Pull Request to add it yourself or create an issue requesting it to be added.