-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.53 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
name: test_dashlane_action
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test_action:
name: Load secrets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Load secrets
id: load_secrets
uses: ./ # Dashlane/load-secrets-action@<version>
env:
ACTION_SECRET_PASSWORD: dl://4471025F-97BF-4FE0-B344-90CE2FBCF924/password
ACTION_SECRET_NOTE: dl://63E11E5F-75FE-4BC7-9C9A-3D394FD20243/content
DASHLANE_SERVICE_DEVICE_KEYS: ${{ secrets.DASHLANE_SERVICE_DEVICE_KEYS }}
- name: test secret values
env:
ACTION_SECRET_PASSWORD: ${{ steps.load_secrets.outputs.ACTION_SECRET_PASSWORD }}
ACTION_SECRET_NOTE: ${{ steps.load_secrets.outputs.ACTION_SECRET_NOTE }}
run: ./test/test.sh
test_action_no_entries:
name: Load secrets - no entries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Load secrets
id: load_secrets
uses: ./ # Dashlane/load-secrets-action@<version>
env:
DASHLANE_SERVICE_DEVICE_KEYS: ${{ secrets.DASHLANE_SERVICE_DEVICE_KEYS }}
- name: Test with no entries
env:
ACTION_SECRET_PASSWORD: ${{ steps.load_secrets.outputs.ACTION_SECRET_PASSWORD }}
run: ./test/test_no_entries.sh