generated from int128/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (41 loc) · 1.06 KB
/
e2e.yaml
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
name: e2e
on:
workflow_run:
workflows:
- '**'
types:
- completed
pull_request:
types:
- opened
- closed
push:
branches:
- main
schedule:
- cron: '0 * * * *' # hourly
jobs:
test:
name: test / ${{ github.event_name }} / ${{ github.event.action }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
checks: read
contents: read
pull-requests: read
steps:
- name: Event
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.info(`eventName=${context.eventName}`)
core.info(`sha=${context.sha}`)
core.info(`ref=${context.ref}`)
core.info(`actor=${context.actor}`)
core.info(`payload=${JSON.stringify(context.payload, undefined, 2)}`)
- uses: int128/datadog-actions-metrics@v1
with:
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
collect-job-metrics: true
collect-step-metrics: true