feat(*): Put all steps in the action #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |