Skip to content

Commit bb45912

Browse files
authored
Create test-evd.yml
1 parent ead7ab2 commit bb45912

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/test-evd.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: test EVD
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test-evd:
8+
name: Test EVD
9+
runs-on: ubuntu-latest
10+
env:
11+
JFROG_CLI_KEY_ALIAS: ${{ vars.JFROG_CLI_KEY_ALIAS }}
12+
JFROG_CLI_SIGNING_KEY: ${{ secrets.JFROG_CLI_SIGNING_KEY }}
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup JFrog CLI
19+
uses: jfrog/setup-jfrog-cli@v4
20+
with:
21+
version: latest
22+
env:
23+
JF_URL: ${{ vars.JF_URL }}
24+
JF_USER: ${{ vars.JF_USER }}
25+
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
26+
27+
- name: Create evidence default key
28+
run: |
29+
echo "📋 Creating evidence from test results..."
30+
echo '{name: "test", key: "test"}' > test-report.json
31+
jf evd create \
32+
--subject-repo-path dev-generic-local/Target.file \
33+
--predicate-type https://cypress.io/evidence/e2e/v1 --predicate test-report.json
34+
35+
- name: Create evidence key from pbcopy
36+
run: |
37+
echo "📋 Creating evidence from test results..."
38+
echo '{name: "test", key: "test"}' > test-report.json
39+
jf evd create \
40+
--subject-repo-path dev-generic-local/Target.file \
41+
--predicate-type https://cypress.io/evidence/e2e/v1 --predicate test-report.json \
42+
--key ${{secrets.KEY1}}
43+
44+
45+
- name: Create evidence key terminal
46+
run: |
47+
echo "📋 Creating evidence from test results..."
48+
echo '{name: "test", key: "test"}' > test-report.json
49+
jf evd create \
50+
--subject-repo-path dev-generic-local/Target.file \
51+
--predicate-type https://cypress.io/evidence/e2e/v1 --predicate test-report.json \
52+
--key ${{secrets.KEY}}

0 commit comments

Comments
 (0)