-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (88 loc) · 2.89 KB
/
quickstart.yml
File metadata and controls
98 lines (88 loc) · 2.89 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Quickstart test
defaults:
run:
shell: bash
on:
push:
branches: [ main ]
pull_request:
paths:
- "docs/content/users/quickstart.md"
- "docs/tests/**"
- "go.*"
- "pkg/**"
- "cmd/**"
- "Makefile"
- "vendor/**"
- ".github/workflows/quickstart.yml"
workflow_dispatch:
inputs:
debug_enabled:
description: 'Enable debug mode'
type: boolean
required: false
default: false
ddev_embargo_tests:
description: 'Pipe-separated list of test names to skip (e.g., symfony-composer|symfony-cli)'
type: string
required: false
default: ''
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Add tests you want to skip here, delimited by pipe (e.g., symfony-composer|symfony-cli)
# Search for _skip_if_embargoed to see how this is used
DDEV_EMBARGO_TESTS: ${{ inputs.ddev_embargo_tests || vars.DDEV_EMBARGO_TESTS || 'drupal12-composer' }}
permissions:
actions: write
jobs:
build:
name: Docs Quickstart test
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@main
- name: Remove unnecessary items on disk
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true
- name: Install Docker and deps (Linux)
run: ./.github/workflows/linux-setup.sh
# 1password secrets are not available on forked PRs and some other PRs
- name: Load 1password secret(s) magento2 etc if available
if: ${{ env.OP_SERVICE_ACCOUNT_TOKEN != '' }}
uses: 1password/load-secrets-action@v4
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: "${{ secrets.TESTS_SERVICE_ACCOUNT_TOKEN }}"
MAGENTO2_PUBLIC_ACCESS_KEY: "op://test-secrets/MAGENTO2_ACCESS_KEYS/public_access_key"
MAGENTO2_PRIVATE_ACCESS_KEY: "op://test-secrets/MAGENTO2_ACCESS_KEYS/private_access_key"
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Run quickstart test
run: |
brew unlink ddev || true
rm -f ~/.config/ddev
make
unset XDG_CONFIG_HOME
# Use mutagen by default as it may cause different behaviors
$(make DDEV_BINARY_FULLPATH) config global --performance-mode=mutagen
make quickstart-test