-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (37 loc) · 1.32 KB
/
action.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: 'End-to-end Testing'
description: 'Execute testim test flows'
inputs:
testim_test:
description: Name of Testim test flow label
required: true
op_service_account_token:
description: 1Password service account token
required: true
runs:
using: "composite"
steps:
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 'lts/Hydrogen'
check-latest: true
- name: Load Testim Secrets
uses: 1password/[email protected]
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ inputs.op_service_account_token }}
TESTIM_TOKEN: op://ajila_CICD/TESTIM/token
TESTIM_GRID_ID: op://ajila_CICD/TESTIM/grid_id
TESTIM_PROJECT: op://ajila_CICD/TESTIM/project
- name: Install dependencies
shell: bash
run: npm install -g @testim/testim-cli
- name: Run Testim test
shell: bash
run: testim --token ${{ env.TESTIM_TOKEN }} --project ${{ env.TESTIM_PROJECT }} --grid ${{ env.TESTIM_GRID_ID }} --label "${{ inputs.testim_test }}"
- name: Notify job status
if: always()
uses: ajilach/[email protected]
with:
op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
slack_channel_id: "${{ inputs.slack_channel_id }}"
job_status: "${{ job.status }}"