Skip to content

tests

tests #913

Workflow file for this run

name: tests
on:
pull_request:
push:
branches: [ main ]
schedule:
- cron: '05 07 * * *'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: Debug with tmate
required: false
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# This is required for "gautamkrishnar/keepalive-workflow", see "ddev/github-action-add-on-test"
permissions:
actions: write
jobs:
tests:
strategy:
matrix:
ddev_version: [stable, HEAD]
fail-fast: false
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Proxy Environment setup
run: |
brew install bats-core mkcert
mkcert -install
sudo apt-get update >/dev/null && sudo apt-get install -y curl tinyproxy >/dev/null
# Tinyproxy will listen by default on all interfaces, port 8888
printf "Allow 172.0.0.0/8\nAllow 192.168.0.0/16\nAllow 10.0.0.0/8\n" | sudo tee -a /etc/tinyproxy/tinyproxy.conf
sudo systemctl restart tinyproxy
echo "TEST_PROXY_URL=http://$(hostname --ip-address):8888" >> $GITHUB_ENV
- uses: ddev/github-action-add-on-test@v2
with:
ddev_version: ${{ matrix.ddev_version }}
token: ${{ secrets.GITHUB_TOKEN }}
debug_enabled: ${{ github.event.inputs.debug_enabled }}
addon_repository: ${{ env.GITHUB_REPOSITORY }}
addon_ref: ${{ env.GITHUB_REF }}