-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (45 loc) · 1.38 KB
/
tests-gh-app.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: GitHub App tests
on:
- push
- pull_request_target
env:
PRIVATE_CUSTOM_ACTIONS: '["daspn/private-custom-action-2@master"]'
jobs:
app-key-base64:
name: GitHub app private checkout with a base64 key encoded
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Private actions checkout
uses: ./
with:
actions_list: ${{ env.PRIVATE_CUSTOM_ACTIONS }}
checkout_base_path: ./.github/actions
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY_BASE64 }}
- name: Say hello
uses: ./.github/actions/private-custom-action-2
with:
who_to_greet: World
app-key-plain:
name: GitHub app private checkout with a plain key encoded
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Private actions checkout
uses: ./
with:
actions_list: ${{ env.PRIVATE_CUSTOM_ACTIONS }}
checkout_base_path: ./.github/actions
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY_PLAIN }}
- name: Say hello
uses: ./.github/actions/private-custom-action-2
with:
who_to_greet: World