generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (51 loc) · 1.33 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
name: tests
on:
pull_request:
push:
branches: [ main ]
schedule:
- cron: '01 07 * * *'
workflow_dispatch:
inputs:
debug_enabled:
description: 'Debug with tmate set "debug_enabled"'
required: false
default: "false"
env:
# Allow ddev get to use a github token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
actions: write
jobs:
tests:
strategy:
matrix:
ddev_version: [stable, HEAD]
fail-fast: false
runs-on: ubuntu-latest
steps:
- 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 }}
- name: Archive browser_output
uses: actions/upload-artifact@v3
with:
name: browser_output
path: |
web/sites/simpletest/browser_output
- name: Archive junits
uses: actions/upload-artifact@v3
with:
name: junits
path: |
*.junit.xml
- name: Nightwatch reports
uses: actions/upload-artifact@v3
with:
name: nightwatch
path: |
web/core/reports/nightwatch