-
Notifications
You must be signed in to change notification settings - Fork 29
79 lines (73 loc) · 2.2 KB
/
ci.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "CCF App Samples CI"
# Created based on https://github.com/microsoft/ccf-app-template
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
banking-app-sample:
name: Banking app sample
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Build samples in DevContainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/microsoft/ccf-samples-devcontainer
runCmd: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
make lint
cd banking-app && make test
env: |
GITHUB_WORKSPACE
auditable-logging-app-sample:
name: Auditable logging app sample
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Build samples in DevContainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/microsoft/ccf-samples-devcontainer
runCmd: |
cd auditable-logging-app && make test
data-reconciliation-app-sample:
name: Data Reconciliation app sample
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Build samples in DevContainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/microsoft/ccf-samples-devcontainer
runCmd: |
cd data-reconciliation-app && make unit-test && make test
decentralized-rbac-app-sample:
name: Decentralized RBAC app sample
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Build samples in DevContainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/microsoft/ccf-samples-devcontainer
runCmd: |
cd decentralized-rbac-app && make test