Test image builds nightly #1022
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test image builds nightly | |
# Run this workflow at 6:30 every day and on each PR | |
on: | |
schedule: | |
- cron: '30 3 * * *' | |
jobs: | |
test-drupal9: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: '1.x' | |
- name: Install modules | |
run: yarn | |
# Uses https://oclif.io/ | |
# Not strictly necessary here, but ensures the packing works | |
- name: Pack the JS | |
run: yarn oclif-dev pack | |
# We build mkcert from source because releases are broken | |
- name: Install test dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y p7zip-full libnss3-tools wget | |
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 | |
- name: Build and test | |
run: | | |
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base | |
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller | |
/bin/sh templates/prebuild.sh --projects "blank drupal9" | |
test-drupal10: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: '1.x' | |
- name: Install modules | |
run: yarn | |
# Uses https://oclif.io/ | |
# Not strictly necessary here, but ensures the packing works | |
- name: Pack the JS | |
run: yarn oclif-dev pack | |
# We build mkcert from source because releases are broken | |
- name: Install test dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y p7zip-full libnss3-tools wget | |
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 | |
- name: Build and test | |
run: | | |
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base | |
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller | |
/bin/sh templates/prebuild.sh --projects drupal10 |