-
-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (41 loc) · 1.06 KB
/
add-on-simple-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Add-on simple tests
on:
push:
branches:
- main
paths-ignore:
- '**.md'
schedule:
- cron: '25 08 * * *'
workflow_dispatch:
permissions:
contents: read
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, edge ]
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 current repository
uses: actions/checkout@v3
- name: Install DDEV (${{ matrix.ddev_version }})
uses: ./
with:
ddev_version: ${{ matrix.ddev_version }}
- name: Clone add-on files
uses: actions/checkout@v3
with:
path: tested-add-on
repository: ${{ env.ADDON_GITHUB_URL }}
ref: ${{ env.ADDON_REF }}
- name: Run test
run: cd tested-add-on && bats tests