Skip to content

Add-on simple tests #46

Add-on simple tests

Add-on simple tests #46

name: Add-on simple tests
on:
push:
branches:
- main
- feat/add-sub-actions
paths-ignore:
- '**.md'
schedule:
- cron: '25 08 * * *'
workflow_dispatch:
permissions:
contents: write
env:
# Allow ddev get to use a GitHub token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
add-on-simple-test:
strategy:
fail-fast: false
matrix:
ddev_version: [ stable, HEAD ]
name: Add-on simple tests
runs-on: ubuntu-20.04
env:
ADDON_GITHUB_URL: "julienloizelet/ddev-playwright"
ADDON_REF: "v2.1.1"
steps:
- name: Clone tested add-on files
uses: actions/checkout@v3
with:
repository: ${{ env.ADDON_GITHUB_URL }}
ref: ${{ env.ADDON_REF }}
- name: Clone current repository
uses: actions/checkout@v3
with:
path: action
- name: Run DDEV test (${{ matrix.ddev_version }})
uses: ./action/
with:
ddev_version: ${{ matrix.ddev_version }}
token: ${{ secrets.GITHUB_TOKEN }}
debug_enabled: false