[CMSP-726] switch to gha #19
Workflow file for this run
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 | |
on: | |
pull_request: | |
release: | |
types: [created] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Composer Dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Install SSH key | |
uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.PANTHEON_UPSTREAM_SSH_KEY }} | |
- name: Unset GITHUB_TOKEN | |
run: | | |
unset GITHUB_TOKEN | |
unset GH_TOKEN | |
shell: bash | |
- name: Run Update Tool Whoami | |
shell: bash | |
run: | | |
export GITHUB_TOKEN=${{ secrets.PANTHEON_UPSTREAM_AUTH_TOKEN }} | |
export GH_TOKEN=${GITHUB_TOKEN} | |
git config --global user.email "bot@getpantheon.com" | |
git config --global user.name "Pantheon Automation" | |
gh auth login --with-token <<< "${{ secrets.PANTHEON_UPSTREAM_AUTH_TOKEN }}" | |
gh auth status | |
./update-tool whoami | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ failure() }} | |
with: | |
limit-access-to-actor: true | |
- name: Run tests | |
run: composer test |