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)'