Skip to content

Commit

Permalink
Upcoming ddev release requires #ddev-generated in files or get can't …
Browse files Browse the repository at this point in the history
…overwrite (#4)

Minor other changes, #ddev-nodisplay added to the arch check

Signed-off-by: Randy Fay <[email protected]>
  • Loading branch information
rfay authored Jun 17, 2022
1 parent 14435a6 commit 46e33e7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tests
on:
pull_request:
push:
branches: [ master, main ]
branches: [ main ]

schedule:
- cron: '01 07 * * *'
Expand All @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
ddev_version: [stable, edge, HEAD]
ddev_version: [stable, HEAD]
# ddev_version: [PR]
fail-fast: false

Expand Down
1 change: 1 addition & 0 deletions commands/cypress/cypress-open
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#ddev-generated

## Description: Open an interactive Cypress window
## https://docs.cypress.io/guides/guides/command-line#cypress-open
Expand Down
2 changes: 1 addition & 1 deletion commands/cypress/cypress-run
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

#ddev-generated
## Description: Use Cypress in "runner" mode.
##
## Usage: cypress-run [arguments]
Expand Down
1 change: 1 addition & 0 deletions docker-compose.cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ddev-generated
version: '3.6'
services:
cypress:
Expand Down
10 changes: 8 additions & 2 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ name: addon-template
# Examples would be removing an extraneous docker volume,
# or doing a sanity check for requirements.
pre_install_actions:
- 'if [ "$(arch)" = "arm64" -o "$(arch)" = "aarch64" ]; then echo "This package does not work on arm64 machines"; exit 1; fi'
- |
#ddev-nodisplay
if [ "$(arch)" = "arm64" -o "$(arch)" = "aarch64" ]; then
echo "This package does not work on arm64 machines";
exit 1;
fi
# list of files and directories listed that are copied into project .ddev directory
project_files:
- docker-compose.cypress.yaml
- commands/cypress/
- commands/cypress/cypress-open
- commands/cypress/cypress-run

# List of files and directories that are copied into the global .ddev directory
global_files:
Expand Down

0 comments on commit 46e33e7

Please sign in to comment.