forked from hyperledger-labs/pdo-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 2.34 KB
/
ci.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
#
# SPDX-License-Identifier: Apache-2.0
#
name: PDO CONTRACTS CI
on: [pull_request, push]
jobs:
pdo_ci:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
name: PDO CONTRACTS CI Job
runs-on: ubuntu-22.04
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- name: Provide a name for the branch for use in building the images
env:
PDO_INTERPRETER: wawaka
PDO_LOG_LEVEL: warning
run: |
git status
# git checkout -b ci-test-branch
# . private-data-objects/build/common-config.sh
- name: Fetch tags
id: tag
run: |
git fetch --tags --force
echo ::set-output name=subject::$(git for-each-ref $GITHUB_REF --format='%(contents:subject)')
- name: Print name
run: |
echo REF: ${{ github.ref }}
echo NAME: ${{ steps.tag.outputs.subject }}
# - name: Build PDO images
# run: |
# make -C docker build_pdo_images
# - name: Build and run tests for the full suite of contract families
# if: "!contains(github.event.commits[0].message, '[example]')"
# run: |
# # The creation of a dummy branch is necessary for the CI tests
# # to work on PRs. Based on empirical results, in the absence of
# # this command, CI tests work on the main branch and on local
# # branches. However, they fail as a PR is created.
# make -C docker test
# - name: Build and run tests for the example contract family
# if: "contains(github.event.commits[0].message, '[example]')"
# run: |
# # The creation of a dummy branch is necessary for the CI tests
# # to work on PRs. Based on empirical results, in the absence of
# # this command, CI tests work on the main branch and on local
# # branches. However, they fail as a PR is created.
# make -C docker example