Skip to content

Commit 278ec29

Browse files
committed
Updating GitHub Actions to split Drupal tests over two jobs.
1 parent d5cfef2 commit 278ec29

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/ce-dev-test.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '30 3 * * *'
77

88
jobs:
9-
build:
9+
build-drupal9:
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- uses: actions/checkout@v2
@@ -36,4 +36,36 @@ jobs:
3636
run: |
3737
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base
3838
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller
39-
/bin/sh templates/prebuild.sh
39+
/bin/sh templates/prebuild.sh --projects "blank drupal9"
40+
41+
build-drupal10:
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- uses: actions/checkout@v2
45+
with:
46+
ref: '1.x'
47+
- name: Install modules
48+
run: yarn
49+
# Uses https://oclif.io/
50+
# Not strictly necessary here, but ensures the packing works
51+
- name: Pack the JS
52+
run: yarn oclif-dev pack
53+
# We build mkcert from source because releases are broken
54+
- name: Install test dependencies
55+
run: |
56+
sudo apt-get update
57+
sudo apt-get install -y p7zip-full libnss3-tools wget
58+
cd /tmp
59+
wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz
60+
sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
61+
export PATH=$PATH:/usr/local/go/bin
62+
git clone https://github.com/FiloSottile/mkcert && cd mkcert
63+
go build -ldflags "-X main.Version=$(git describe --tags)"
64+
sudo mv ./mkcert /usr/local/bin && cd ../
65+
sudo chmod +x /usr/local/bin/mkcert
66+
rm -Rf mkcert
67+
- name: Build and test
68+
run: |
69+
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base
70+
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller
71+
/bin/sh templates/prebuild.sh --projects drupal10

0 commit comments

Comments
 (0)