-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply upstream updates as a step outside the matrix
- Loading branch information
1 parent
fdfc147
commit a61a5ac
Showing
1 changed file
with
39 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,48 @@ on: | |
- 'private/scripts/**' | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
jobs: | ||
apply_upstream_updates: | ||
name: Apply Upstream Updates | ||
runs-on: ubuntu-latest | ||
env: | ||
TERM: xterm-256color | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install SSH keys | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Get latest Terminus release | ||
run: | | ||
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then | ||
echo "☕ Installing Terminus on macOS from Homebrew..." | ||
brew install pantheon-systems/external/terminus | ||
else | ||
echo "💻 Installing Terminus from phar on Linux..." | ||
curl -L "https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar" -o terminus | ||
chmod +x terminus | ||
sudo mv terminus /usr/local/bin/ | ||
fi | ||
# Test that terminus works... | ||
terminus --version | ||
- name: Validate Pantheon Host Key | ||
run: | | ||
echo "Host *.drush.in HostKeyAlgorithms +ssh-rsa" >> ~/.ssh/config | ||
echo "Host *.drush.in PubkeyAcceptedKeyTypes +ssh-rsa" >> ~/.ssh/config | ||
echo "StrictHostKeyChecking no" >> ~/.ssh/config | ||
- name: Log into Terminus | ||
run: | | ||
terminus auth:login --machine-token=${{ secrets.TERMINUS_TOKEN }} | ||
terminus upstream:updates:apply wpcm-sage-install-tests | ||
test: | ||
name: Sage Install Tests | ||
env: | ||
TERM: xterm-256color | ||
needs: apply_upstream_updates | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
|
@@ -85,10 +123,9 @@ jobs: | |
echo "Host *.drush.in HostKeyAlgorithms +ssh-rsa" >> ~/.ssh/config | ||
echo "Host *.drush.in PubkeyAcceptedKeyTypes +ssh-rsa" >> ~/.ssh/config | ||
echo "StrictHostKeyChecking no" >> ~/.ssh/config | ||
- name: Log into Terminus and Check for updates | ||
- name: Log into Terminus | ||
run: | | ||
terminus auth:login --machine-token=${{ secrets.TERMINUS_TOKEN }} | ||
terminus upstream:updates:apply "wpcm-sage-install-tests.${multidev_name}" --accept-upstream | ||
- name: Clone site and create multidev | ||
run: | | ||
echo "Cloning site..." | ||
|