-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (53 loc) · 1.8 KB
/
Copy pathe2e-target.yaml
File metadata and controls
58 lines (53 loc) · 1.8 KB
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
57
58
name: e2e-target
on:
workflow_run:
workflows:
- ts
types:
- completed
jobs:
test:
if: |
github.actor == 'int128' ||
github.actor == 'renovate[bot]'
name: test / ${{ github.event_name }} / ${{ github.event.action }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
checks: write
contents: read
steps:
- name: Event
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
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: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .node-version
- run: npm install -g corepack
- run: corepack enable
- run: pnpm i
- run: pnpm build
- uses: ./
with:
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
collect-job-metrics: true
collect-step-metrics: true
- if: always()
uses: int128/checks-action@860fcb44f66b9e9c36dc135c300bf3e8c1b6cfd2 # v0.20.0
with:
operation: create-check-run
check-run-name: e2e-target
details-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
title: E2E test ${{ job.status }}
summary: |
This is an end-to-end test triggered by the completion of the `ts` workflow.