-
Notifications
You must be signed in to change notification settings - Fork 41
54 lines (45 loc) · 1.8 KB
/
Copy pathexternal-services-tests.yml
File metadata and controls
54 lines (45 loc) · 1.8 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
name: External Services Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch:
# Primes the new week's Rust cache on main right after the weekly `prefix-key` rolls
# over at UTC Sun 00:00. See near/mpc#2828.
schedule:
- cron: "5 0 * * 0"
jobs:
external-services-tests:
name: "Run tests that depend on external services"
runs-on: warp-ubuntu-2404-x64-2x
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- run: echo "WEEK=$(date -u +%Y-%U)" >> "$GITHUB_ENV"
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
cache-provider: "warpbuild"
prefix-key: v0-rust-week-${{ env.WEEK }}
- name: Install cargo-nextest
uses: taiki-e/install-action@d4422f254e595ee762a758628fe4f16ce050fa2e # v2.67.28
with:
tool: nextest@0.9.126
- name: Run contract-history tests
if: always()
run: cargo nextest run -p contract-history --features external-services-tests --cargo-profile test-release --locked
- name: Run tee-launcher registry tests
if: always()
run: cargo nextest run -p tee-launcher --features external-services-tests --cargo-profile test-release --locked
- name: Run tee-authority tests
if: always()
run: cargo nextest run -p tee-authority --features external-services-tests --cargo-profile test-release --locked -E 'test(test_fetch_collateral_from_pccs)'