-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (52 loc) · 1.35 KB
/
wordpress-example.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
name: Wordpress test routine
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
jobs:
test-suite:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 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: get user ids
run: |
ls -al .
whoami
id
id -u
id -g
getent group $(id -g)
groups
- name: Update codebase to follow CI configuration
run: |
sed -i -e "/###/d" docker-compose.yml
- name: Pull all images
run: |
docker-compose pull --ignore-pull-failures
- name: Install test harness
run: |
yarn add leia-parser mocha chai@4 command-line-test
- name: Generate test files
run: |
yarn leia "TESTING*.md" test -r 2 -s 'Start up tests' -t 'Verification commands' -c 'Destroy tests' --split-file
- name: Run docker-compose tests
run: |
yarn mocha --timeout 900000 test/*compose*.func.js