{"id":17668686,"url":"https://github.com/digipie/mongo-action","last_synced_at":"2025-05-08T22:14:39.376Z","repository":{"id":126775228,"uuid":"245165324","full_name":"DigiPie/mongo-action","owner":"DigiPie","description":"Github action to create a Docker container from the official mongo image.","archived":false,"fork":false,"pushed_at":"2023-02-13T16:17:55.000Z","size":43,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T22:14:31.089Z","etag":null,"topics":["chai","expressjs","github-actions","mocha","mongo","mongo-action","mongodb","mongoose","nodejs","test-automation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DigiPie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-05T13:05:12.000Z","updated_at":"2023-03-08T02:36:38.000Z","dependencies_parsed_at":"2023-06-09T06:30:29.340Z","dependency_job_id":null,"html_url":"https://github.com/DigiPie/mongo-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiPie%2Fmongo-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiPie%2Fmongo-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiPie%2Fmongo-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiPie%2Fmongo-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigiPie","download_url":"https://codeload.github.com/DigiPie/mongo-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154977,"owners_count":21862623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chai","expressjs","github-actions","mocha","mongo","mongo-action","mongodb","mongoose","nodejs","test-automation"],"created_at":"2024-10-23T23:23:28.079Z","updated_at":"2025-05-08T22:14:39.371Z","avatar_url":"https://github.com/DigiPie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongo-action\n\n[![GitHub Actions status](https://github.com/DigiPie/mongo-action/workflows/mongo-action%20CI/badge.svg)](https://github.com/DigiPie/mongo-action/actions) [![GitHub Releases](https://img.shields.io/github/release/DigiPie/mongo-action.svg)](https://github.com/DigiPie/mongo-action/releases)\n\n**mongo-action** is a Github Action that creates a Docker container using the official mongo image from [Dockerhub](https://hub.docker.com/_/mongo). \nThe MongoDB server port will be published/exposed to the host running the Github Workflow.\n\n## Inputs\n\n### `image_version`\n\n**Optional.** The mongo Docker image version to use. Defaults to `latest`. Refer to the official [Dockerhub image page](https://hub.docker.com/_/mongo).\n\n### `port`\n\n**Optional.** The port where the mongo service will be published at (i.e. `docker run -p ${port}:27017`). Defaults to `27017`. Refer to the official [docker run page](https://docs.docker.com/engine/reference/commandline/run/#publish).\n\n## Example usage with mongosh\n\n```yaml\nname: mongo-action CI\non: [push]\n\njobs:\n  test_mongo_action:\n    runs-on: ubuntu-latest\n    name: Test mongo-action\n    steps:\n      - name: Create mongo Docker container\n        uses: DigiPie/mongo-action@v2.0.1\n        with:\n          image_version: latest\n          port: 27017\n      - name: Install mongosh command\n        run: |\n          sudo apt-get update\n          sudo apt-get install -y wget gnupg\n          wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -\n          echo \"deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse\" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list\n          sudo apt-get update\n          sudo apt-get install -y mongodb-mongosh\n      - name: Test mongo connection\n        run: \"sudo mongosh localhost:27017\"\n```\n\n## Example usage with NodeJS-ExpressJS\n\nRefer to [DigiPie/mocha-chai-mongoose](https://github.com/DigiPie/mocha-chai-mongoose) for how you could use **mongo-action** with **Mocha** and **Chai** to perform automated API testing for a **NodeJS-ExpressJS-Mongoose** app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipie%2Fmongo-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigipie%2Fmongo-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipie%2Fmongo-action/lists"}