Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasstkn/molecule-demo-monorepo
Tests monorepo with Ansible roles using Molecule
https://github.com/jasstkn/molecule-demo-monorepo
ansible molecule
Last synced: 22 days ago
JSON representation
Tests monorepo with Ansible roles using Molecule
- Host: GitHub
- URL: https://github.com/jasstkn/molecule-demo-monorepo
- Owner: Jasstkn
- Created: 2021-03-09T05:58:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T12:58:15.000Z (over 2 years ago)
- Last Synced: 2024-11-09T00:42:54.149Z (3 months ago)
- Topics: ansible, molecule
- Language: YAML
- Homepage:
- Size: 80.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# molecule-demo-monorepo
Related article on [Medium](https://mariarti0644.medium.com/using-ansible-molecule-to-test-roles-in-monorepo-5f711c716666)
## Run tests
Run tests again all scenarios
```bash
make test
```Run test again specific scenario
```bash
make scenario=lint test-scenario
```## Local usage
1. Install [poetry][1]
2. Install venv
3. Create a virtual environment
```bash
virtualenv .venv
```
4. Activate virtual environment
```bash
source .venv/bin/activate
```
5. Install dependencies via poetry
```bash
poetry install
```or using Makefile
```
make install_dependencies
```[1]: https://python-poetry.org/docs/#installation
[2]: https://virtualenv.pypa.io/en/latest/installation.html