Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonaseberle/github-action-setup-ddev
Set up your GitHub Actions workflow with ddev
https://github.com/jonaseberle/github-action-setup-ddev
Last synced: about 2 months ago
JSON representation
Set up your GitHub Actions workflow with ddev
- Host: GitHub
- URL: https://github.com/jonaseberle/github-action-setup-ddev
- Owner: jonaseberle
- License: gpl-3.0
- Archived: true
- Created: 2019-11-24T23:48:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T20:15:55.000Z (over 1 year ago)
- Last Synced: 2024-04-14T19:12:26.248Z (8 months ago)
- Language: JavaScript
- Size: 19.3 MB
- Stars: 29
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ddev - GitHub action
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)
# Deprecated
We have moved here:
[https://github.com/ddev/github-action-setup-ddev](https://github.com/ddev/github-action-setup-ddev)
Please update your usages:
```yaml
uses: ddev/github-action-setup-ddev@v1
```# Setup and start ddev action
This **Github action** starts [ddev](https://github.com/drud/ddev/) with your project's configuration from the directory `.ddev`.
The 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.
Any additional services that you might have configured will be started and any post-start hooks etc. will be run.
## Example Github workflow
```yaml
on: [push, pull_request]jobs:
test:
runs-on: ubuntu-18.04 # tested on: 18.04/20.04
steps:
- uses: actions/checkout@v1
- uses: jonaseberle/github-action-setup-ddev@v1
# example: composer install
- run: ddev composer install
# example: fill database
- run: ddev mysql < data/db.sql
# ... and so on.
```### Options
#### ddevDir
Path to your ddev project.
default: `.` (root directory)
```yaml
- uses: jonaseberle/github-action-setup-ddev@v1
with:
ddevDir: ".devbox"
# run `ddev` project commands from that directory
- run: ddev composer install
working-directory: .devbox
```#### autostart
Starts your ddev project immediately.
default: `true`
```yaml
- uses: jonaseberle/github-action-setup-ddev@v1
with:
autostart: false
```## Common recipes
### SSH keys
If 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":
```
- name: Set up SSH keys
run: |
mkdir -p .ddev/homeadditions/.ssh
echo "${{ secrets.MY_KEY }}" > .ddev/homeadditions/.ssh/id_rsa
echo "${{ secrets.MY_KNOWN_HOSTS }}" > .ddev/homeadditions/.ssh/known_hosts
chmod 700 .ddev/homeadditions/.ssh
chmod 600 .ddev/homeadditions/.ssh/id_rsa
- name: Set up ddev
uses: jonaseberle/github-action-setup-ddev@v1
```## Contact
For **bugs** and **feature requests** use the [Github bug tracker](https://github.com/jonaseberle/github-action-setup-ddev/issues).
Pull requests are very welcome.