Skip to content

Commit f060a6b

Browse files
Merge branch 'main' into spofford/identity-storage
2 parents 5799380 + 7742917 commit f060a6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1928
-225
lines changed

.github/scripts/test-matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
TEST_DIR = "bin/icp-cli/tests"
55

6-
MACOS_TESTS = ["hello_tests"]
6+
MACOS_TESTS = ["network_tests"]
77

88
def test_names():
99
all_files = os.listdir(TEST_DIR)

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
- main
77
pull_request:
88

9+
env:
10+
# When getting Rust dependencies, retry on network error:
11+
CARGO_NET_RETRY: 10
12+
# Use the local .curlrc
13+
CURL_HOME: .
14+
# Disable DFX telemetry
15+
DFX_TELEMETRY: 'off'
16+
917
jobs:
1018
discover:
1119
runs-on: ubuntu-latest
@@ -38,6 +46,14 @@ jobs:
3846
target
3947
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-test-1
4048

49+
- name: Install dfx
50+
uses: dfinity/setup-dfx@main
51+
- name: Set up path to dfx for tests and to pocketic for icp
52+
run: |
53+
dfx cache install
54+
echo "ICPTEST_DFX_PATH=$(dfx cache show)/dfx" >> "$GITHUB_ENV"
55+
echo "ICP_POCKET_IC_PATH=$(dfx cache show)/pocket-ic" >> "$GITHUB_ENV"
56+
4157
- name: Run ${{ matrix.test }}
4258
run: cargo test --test ${{ matrix.test }}
4359

0 commit comments

Comments
 (0)