-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (39 loc) · 1.46 KB
/
ce-deploy-test-drupal8.yml
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
name: Run test for Drupal 8
# Run this workflow every time a new commit pushed to your repository
on: pull_request
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
run-tests:
# Name the Job
name: Run Drupal 8 test build
# Set the type of machine to run on
runs-on: ubuntu-20.04
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
# Installs the ce-dev stack
- name: Install ce-dev
run: |
cd /tmp
wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
sudo mv ./mkcert /usr/local/bin && cd ../
sudo chmod +x /usr/local/bin/mkcert
rm -Rf mkcert
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
# Uses the ce-dev stack to run a test Drupal deploy
- name: Run a test ce-dev deploy with Drupal 8
run: |
ce-dev create -p test -t drupal8 -d ~/test
cd ~/test
ce-dev init
ce-dev start
ce-dev provision
ce-dev deploy
curl https://www.test.local
shell: bash