-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (54 loc) · 1.58 KB
/
lagoon-examples.yaml
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
name: Drupal test routine
on:
push:
branches:
- 'main'
- 'new_repos'
pull_request:
branches:
- 'main'
jobs:
test-suite:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: install Lando
run: |
wget https://files.lando.dev/installer/lando-x64-stable.deb
sudo dpkg --ignore-depends=docker-ce -i lando-x64-stable.deb
- name: Report versions
run: |
docker version
docker-compose version
lando version
node -v
yarn -v
- name: Update git submodules
run: |
git submodule sync
git submodule update --init
- name: Install test harness
run: |
yarn install
- name: Generate test files
run: |
yarn generate-tests
- name: Run docker-compose tests
run: |
yarn test:dockercompose
# - name: Run Lando tests
# timeout-minutes: 10
# continue-on-error: true
# run: |
# yq e -i '.services.cli.overrides.environment.LANDO_WEBROOT_USER = "runner"' .lando.yml
# yq e -i '.services.cli.overrides.environment.LANDO_WEBROOT_GROUP = "docker"' .lando.yml
# yq e -i '.services.php.overrides.environment.LANDO_WEBROOT_USER = "runner"' .lando.yml
# yq e -i '.services.php.overrides.environment.LANDO_WEBROOT_GROUP = "docker"' .lando.yml
# yarn mocha --timeout 900000 test/*lando*.func.js
# - name: Show Lando logs
# continue-on-error: true
# run: |
# docker-compose -p drupal9base logs