From e2f84973bcd305d3210392b8cd308b5c37a72095 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalski Date: Mon, 16 Dec 2024 17:58:04 +0100 Subject: [PATCH] Remove test workflow --- .github/workflows/nightly.yml | 7 ++++++- .github/workflows/test.yml | 27 --------------------------- 2 files changed, 6 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b2462d5f..a66681a5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -3,6 +3,10 @@ name: Nightly on: schedule: - cron: "0 0 * * *" + # temp + push: + branches: + - ci-refactor permissions: contents: read @@ -12,9 +16,10 @@ jobs: name: Build nightly runs-on: ubuntu-latest steps: + - uses: dtolnay/rust-toolchain@stable + - name: Upgrade Cairo to latest main commit run: cargo xtask upgrade cairo --rev $(git ls-remote --refs "https://github.com/starkware-libs/cairo" main | awk '{print $1}') - - uses: dtolnay/rust-toolchain@stable - name: Get corelib run: git clone https://github.com/starkware-libs/cairo - name: Run cargo test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index f8f25ba8..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,27 +0,0 @@ -on: [push, pull_request] - -name: Test - -jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Get corelib - run: git clone https://github.com/starkware-libs/cairo - - - name: Install toolchain - run: rustup show - - - uses: Swatinem/rust-cache@v2 - - - name: Run cargo clippy - run: cargo clippy -- -D warnings - - - name: Run cargo test - run: CORELIB_PATH="$(pwd)/cairo/corelib/src" cargo test - - - name: Run cargo fmt - run: rustup toolchain install nightly && rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt && cargo +nightly fmt -- --check