Skip to content

Support nektos/act for local GitHub actions testing #113

Support nektos/act for local GitHub actions testing

Support nektos/act for local GitHub actions testing #113

Workflow file for this run

on: [push, pull_request, workflow_dispatch]
name: tests
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
version: ['latest', '1.22.3']
steps:
- uses: actions/checkout@v4
- uses: ./
with:
ddevDir: tests/fixtures/ddevProj1
autostart: false
version: ${{ matrix.version }}
- name: ddev version
run: |
if [[ ${{ matrix.version }} == '1.22.3' ]]; then
test "$(ddev --version)" == 'ddev version v1.22.3'
else
test "$(ddev --version)" != 'ddev version v1.22.3'
fi
- name: ddev stopped
run: |
cd tests/fixtures/ddevProj1
test '"stopped"' = "$(ddev describe --json-output | jq '.raw.status')"
- name: start ddev
run: |
cd tests/fixtures/ddevProj1
ddev start --json-output --skip-confirmation
- name: Mailhog reachable
run: curl --silent --dump-header - --output /dev/null https://setup-ddev-proj1.ddev.site:8026
- name: "index.html: expected output"
run: test 'index.html test output' = "$(curl --silent https://setup-ddev-proj1.ddev.site)"