This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
Slow Tests #545
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slow Tests | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 1 * * 1" | |
workflow_dispatch: | |
env: | |
RUST_TEST_THREADS: 4 | |
jobs: | |
build: | |
runs-on: [self-hosted, X64] | |
container: | |
image: ghcr.io/espressosystems/nix:main | |
volumes: | |
- github_nix:/nix | |
steps: | |
- uses: styfle/cancel-workflow-action@0.12.0 | |
name: Cancel Outdated Builds | |
with: | |
access_token: ${{ github.token }} | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: espresso-systems-private | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: Potential broken submodules fix | |
run: | | |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- name: Initialize Nix Shell | |
run: nix-shell --run "echo Init" | |
- name: Cache cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry/index | |
~/.cargo/registry/cache | |
~/.cargo/git | |
target | |
# todo: add nix key, for example: nix-instantiate shell.nix | sha256sum | head -c 10 | |
key: cape-v5-${{ hashFiles('Cargo.lock') }} | |
- name: Run Tests | |
run: nix-shell --run "cape-test-geth-slow" |