File tree 3 files changed +39
-1
lines changed
3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 34
34
- name : Setup kcov
35
35
run : wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz && tar -xf kcov-amd64.tar.gz && sudo mv ./usr/local/bin/kcov /usr/local/bin/kcov && kcov --version
36
36
37
- - name : Setup Ahoy v2.1.1
37
+ - name : Install Ahoy
38
38
run : os=$(uname -s | tr [:upper:] [:lower:]) && architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) && sudo wget -q https://github.com/ahoy-cli/ahoy/releases/download/v2.1.1/ahoy-bin-$os-$architecture -O /usr/local/bin/ahoy && sudo chown $USER /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
39
39
40
40
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ assert_workflow() {
120
120
121
121
pushd " ${dir} " > /dev/null || exit 1
122
122
123
+ # Very basic workflow.
123
124
ahoy build
124
125
ahoy lint
125
126
ahoy test
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bats
2
+
3
+ load _helper
4
+
5
+ export BATS_FIXTURE_EXPORT_CODEBASE_ENABLED=1
6
+
7
+ @test " ahoy build" {
8
+ ahoy build
9
+ assert_success
10
+ assert_output_contains " PROVISION COMPLETE"
11
+
12
+ run ahoy drush status
13
+ assert_success
14
+ assert_output_contains " Database : Connected"
15
+ assert_output_contains " Drupal bootstrap : Successful"
16
+
17
+ run ahoy login
18
+ assert_success
19
+ assert_output_contains " user/reset/1/"
20
+
21
+ ahoy lint
22
+ assert_success
23
+
24
+ ahoy test
25
+ assert_success
26
+
27
+ ahoy test-unit
28
+ assert_success
29
+
30
+ ahoy test-kernel
31
+ assert_success
32
+
33
+ ahoy test-functional
34
+ assert_success
35
+
36
+ ahoy reset
37
+ }
You can’t perform that action at this time.
0 commit comments