This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
56 lines (56 loc) · 1.76 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'ORBOS E2E Test'
description: 'Runs ORBITER end-to-end tests with the ORB the action is applied to'
inputs:
e2e-pat:
description: 'pass the action variable secrets.GITHUB_TOKEN'
required: true
default: ''
google-chat-webhook-failure:
description: 'pass the action variable secrets.GOOGLE_CHAT_WEBHOOK_FAILURE'
required: true
default: ''
google-chat-webhook-success:
description: 'pass the action variable secrets.GOOGLE_CHAT_WEBHOOK_SUCCESS'
required: true
default: ''
# orbconfig:
# description: 'orbconfig file pointing to the ORB under test'
# required: true
# default: ''
# graphite-key:
# description: 'if passed, state metrics are sent to a grafana cloud graphite endpoint'
# required: false
# default: ''
# graphite-url:
# description: 'if passed, state metrics are sent to a grafana cloud graphite endpoint'
# required: false
# default: ''
branch:
description: 'the ORBOS branch to test'
required: false
default: ''
# dry-run:
# description: 'run action in dry-run mode'
# required: false
# default: 'false'
runs:
using: composite
steps:
- uses: actions/checkout@v2
with:
repository: 'caos/orbos'
ref: "${{ github.event.inputs.branch || github.event.client_payload.branch || 'master' }}"
token: '${{ inputs.e2e-pat }}'
- uses: bahmutov/npm-install@v1
with:
working-directory: ./testing
- name: Cypress run
uses: cypress-io/github-action@v2
with:
working-directory: ./testing
- name: Google Chat Notification
uses: Co-qn/google-chat-notification@releases/v1
with:
name: ORBOS E2E
url: ${{ job.status == 'failure' ? inputs.google-chat-webhook-failure : inputs.google-chat-webhook-success }}
status: ${{ job.status }}