-
Notifications
You must be signed in to change notification settings - Fork 12
60 lines (52 loc) · 1.54 KB
/
program-integration.yml
File metadata and controls
60 lines (52 loc) · 1.54 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
59
60
name: Program Integration Tests
on:
push:
branches: [main, hardening/pre-release-audit]
paths:
- "contra-escrow-program/**"
- "contra-withdraw-program/**"
- "Cargo.*"
- "Makefile"
- ".github/workflows/program-integration.yml"
- "scripts/**"
pull_request:
branches: [main, hardening/pre-release-audit]
paths:
- "contra-escrow-program/**"
- "contra-withdraw-program/**"
- "Cargo.*"
- "Makefile"
- ".github/workflows/program-integration.yml"
- "scripts/**"
env:
CARGO_TERM_COLOR: always
RUST_LOG: info
permissions:
contents: read
jobs:
integration-test:
name: Program Integration Tests
runs-on: contra-runner-1
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup environment
uses: ./.github/actions/setup-environment
with:
install-base-cargo-tools: "false"
install-system-dependencies: "false"
build-programs: "false"
- name: Build programs
run: |
make -C contra-escrow-program build
make -C contra-withdraw-program build
- name: Run escrow integration tests
run: make -C contra-escrow-program integration-test-no-build
- name: Run withdraw integration tests
run: make -C contra-withdraw-program integration-test-no-build
- name: Show failure logs
if: failure()
uses: ./.github/actions/show-failure-logs
with:
test-type: "Program integration"