-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (30 loc) · 941 Bytes
/
test.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
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/[email protected]
with:
ssh-private-key: ${{ secrets.PANTHEON_UPSTREAM_SSH_KEY }}
- name: Unset GITHUB_TOKEN
run: unset GITHUB_TOKEN
shell: bash
- name: Run Update Tool Whoami
shell: bash
run: |
export GITHUB_TOKEN=${{ secrets.PANTHEON_UPSTREAM_AUTH_TOKEN }}
git config --global user.email "[email protected]"
git config --global user.name "Pantheon Automation"
gh auth login --with-token <<< "${GITHUB_TOKEN}"
gh auth status
./update-tool whoami
- name: Run tests
run: composer test