-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (68 loc) · 2.05 KB
/
p2p.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Full P2P
on:
workflow_call:
secrets:
SLACK_WEBHOOK_ALERT_URL:
required: true
inputs:
ref:
description: 'Git ref'
type: string
required: false
default: ''
lifecycle:
description: 'The lifecycle to run'
type: string
required: true
workflow_dispatch:
inputs:
lifecycle:
description: 'The lifecycle to run'
type: string
required: true
permissions:
contents: write
id-token: write
jobs:
version:
uses: coreeng/p2p/.github/workflows/p2p-version.yaml@v1
with:
checkout-version: ${{ inputs.ref }}
version-prefix: '${{ inputs.lifecycle }}/v'
secrets:
git-token: ${{ secrets.GITHUB_TOKEN }}
fastfeedback:
needs: [version]
uses: coreeng/p2p/.github/workflows/p2p-workflow-fastfeedback.yaml@v1
with:
working-directory: './${{ inputs.lifecycle }}'
checkout-version: ${{ inputs.ref }}
version: ${{ needs.version.outputs.version }}
extendedtests:
needs: [fastfeedback, version]
uses: coreeng/p2p/.github/workflows/p2p-workflow-extended-test.yaml@v1
with:
working-directory: './${{ inputs.lifecycle }}'
version: ${{ needs.version.outputs.version }}
version-prefix: '${{ inputs.lifecycle }}/v'
prod:
needs: [extendedtests, version]
uses: coreeng/p2p/.github/workflows/p2p-workflow-prod.yaml@v1
with:
working-directory: './${{ inputs.lifecycle }}'
version: ${{ needs.version.outputs.version }}
version-prefix: '${{ inputs.lifecycle }}/v'
failure-alert:
needs: [version, fastfeedback, extendedtests, prod]
if: failure()
runs-on: ubuntu-24.04
steps:
- uses: slackapi/slack-github-action@v1
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ALERT_URL }}
with:
payload: |
{
"notification": "❌ P2P for '${{ inputs.lifecycle }}' failed!",
"workflow_link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}