{"id":13561551,"url":"https://github.com/jonaseberle/github-action-setup-ddev","last_synced_at":"2025-04-03T17:31:11.335Z","repository":{"id":43671366,"uuid":"223827518","full_name":"jonaseberle/github-action-setup-ddev","owner":"jonaseberle","description":"Set up your GitHub Actions workflow with ddev","archived":true,"fork":false,"pushed_at":"2023-07-07T20:15:55.000Z","size":20283,"stargazers_count":29,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T19:12:26.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonaseberle.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}},"created_at":"2019-11-24T23:48:41.000Z","updated_at":"2023-09-12T14:32:24.000Z","dependencies_parsed_at":"2024-01-14T03:47:35.665Z","dependency_job_id":"ef374054-dddc-4fcf-b3d5-8c9ea49cf6b7","html_url":"https://github.com/jonaseberle/github-action-setup-ddev","commit_stats":{"total_commits":59,"total_committers":7,"mean_commits":8.428571428571429,"dds":"0.30508474576271183","last_synced_commit":"9c54827f6f3b1084358a89b17713649ad705543f"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaseberle%2Fgithub-action-setup-ddev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaseberle%2Fgithub-action-setup-ddev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaseberle%2Fgithub-action-setup-ddev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaseberle%2Fgithub-action-setup-ddev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaseberle","download_url":"https://codeload.github.com/jonaseberle/github-action-setup-ddev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247046880,"owners_count":20874735,"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":[],"created_at":"2024-08-01T13:00:58.202Z","updated_at":"2025-04-03T17:31:06.325Z","avatar_url":"https://github.com/jonaseberle.png","language":"JavaScript","funding_links":[],"categories":["GitHub Actions"],"sub_categories":[],"readme":"[![Tests](https://github.com/jonaseberle/github-action-setup-ddev/workflows/tests/badge.svg?event=push)](https://github.com/jonaseberle/github-action-setup-ddev/actions)\n\n# Deprecated\n\nWe have moved here:\n\n[https://github.com/ddev/github-action-setup-ddev](https://github.com/ddev/github-action-setup-ddev)\n\n\nPlease update your usages:\n\n```yaml\nuses: ddev/github-action-setup-ddev@v1\n```\n\n\n# Setup and start ddev action\n\nThis **Github action** starts [ddev](https://github.com/drud/ddev/) with your project's configuration from the directory `.ddev`.\n\nThe idea is to reuse the same environment that you are maintaining for development anyways for automated acceptance testing, thus saving on maintaining a separate CI-configuration.\n\nAny additional services that you might have configured will be started and any post-start hooks etc. will be run.\n\n## Example Github workflow\n\n```yaml\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-18.04    # tested on: 18.04/20.04\n    steps:\n      - uses: actions/checkout@v1\n      - uses: jonaseberle/github-action-setup-ddev@v1\n      # example: composer install\n      - run: ddev composer install\n      # example: fill database\n      - run: ddev mysql \u003c data/db.sql\n      # ... and so on.\n```\n\n### Options\n\n#### ddevDir\n\nPath to your ddev project.\n\ndefault: `.` (root directory)\n\n```yaml\n  - uses: jonaseberle/github-action-setup-ddev@v1\n    with:\n      ddevDir: \".devbox\"\n  # run `ddev` project commands from that directory\n  - run: ddev composer install\n    working-directory: .devbox\n```\n\n#### autostart\n\nStarts your ddev project immediately.\n\ndefault: `true`\n\n```yaml\n  - uses: jonaseberle/github-action-setup-ddev@v1\n    with:\n      autostart: false\n```\n\n## Common recipes\n\n### SSH keys\n\nIf your workflow needs to reach remote destinations that require private SSH keys, here is a snippet showing how you might add SSH keys that you have entered as Github \"secrets\":\n\n```\n- name: Set up SSH keys\n  run: |\n    mkdir -p .ddev/homeadditions/.ssh\n    echo \"${{ secrets.MY_KEY }}\" \u003e .ddev/homeadditions/.ssh/id_rsa\n    echo \"${{ secrets.MY_KNOWN_HOSTS }}\" \u003e .ddev/homeadditions/.ssh/known_hosts\n    chmod 700 .ddev/homeadditions/.ssh\n    chmod 600 .ddev/homeadditions/.ssh/id_rsa\n- name: Set up ddev\n  uses: jonaseberle/github-action-setup-ddev@v1\n```\n\n## Contact\n\nFor **bugs** and **feature requests** use the [Github bug tracker](https://github.com/jonaseberle/github-action-setup-ddev/issues).\n\nPull requests are very welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaseberle%2Fgithub-action-setup-ddev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaseberle%2Fgithub-action-setup-ddev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaseberle%2Fgithub-action-setup-ddev/lists"}