-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 811 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (30 loc) · 811 Bytes
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
name: contracts
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
quality:
uses: ./.github/workflows/quality.yml
tests:
uses: ./.github/workflows/tests.yml
sdk:
uses: ./.github/workflows/sdk.yml
package:
uses: ./.github/workflows/package.yml
# A stable required check: failed, cancelled or skipped lanes cannot pass.
delivery:
if: ${{ always() }}
needs: [quality, tests, sdk, package]
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Require every lane to succeed
env:
RESULTS: ${{ toJSON(needs) }}
run: jq -e 'all(.[]; .result == "success")' <<< "$RESULTS"