From 85eeabff1ef18c13ac5305031aa1c2caa542d206 Mon Sep 17 00:00:00 2001 From: Gianfranco Date: Tue, 3 Dec 2024 07:44:08 -0300 Subject: [PATCH] test only integration on CI --- .github/workflows/ci-main.yml | 156 +++++++++++++++++----------------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index ddca6adbf..2a318810c 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -11,83 +11,83 @@ env: RUSTFLAGS: "-Dwarnings" jobs: - check-code: - name: Check Code - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Undergo Prerequisite - uses: ./.github/actions/prerequisite - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check Build - run: | - bash ./scripts/cmd-all build check "--release" - - - name: Clippy -- Libraries and Binaries - run: | - bash ./scripts/cmd-all clippy "clippy --lib --bins" "--release -- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references" - - check-code-nightly: - name: Run Clippy and Fmt - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Run Prerequisite (for Nightly) - uses: ./.github/actions/prerequisite-nightly - with: - token: ${{ secrets.GITHUB_TOKEN }} - version: ${{ env.RUSTUP_NIGHTLY_VERSION }} - - - name: Rustfmt - uses: actions-rs/cargo@v1 - with: - toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }} - command: fmt - args: --all -- --check - - - name: Clippy for Tests and Examples - uses: actions-rs/cargo@v1 - with: - toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }} - command: clippy - args: --release --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references - - cargo-test: - name: Run Tests for Pallets and Clients - needs: check-code - if: needs.check-code.result == 'success' - runs-on: ubuntu-latest - env: - SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }} - SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }} - DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }} - DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }} - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Run Prerequisite (for Nightly) - uses: ./.github/actions/prerequisite-nightly - with: - token: ${{ secrets.GITHUB_TOKEN }} - version: ${{ env.RUSTUP_NIGHTLY_VERSION }} - - - name: Run Tests for Pallets - run: | - bash ./scripts/cmd-pallets test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release" - - - name: Run Tests for Clients - run: | - bash ./scripts/cmd-clients test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release" +# check-code: +# name: Check Code +# runs-on: ubuntu-latest +# +# steps: +# - name: Checkout Repository +# uses: actions/checkout@v4 +# +# - name: Undergo Prerequisite +# uses: ./.github/actions/prerequisite +# with: +# token: ${{ secrets.GITHUB_TOKEN }} +# +# - name: Check Build +# run: | +# bash ./scripts/cmd-all build check "--release" +# +# - name: Clippy -- Libraries and Binaries +# run: | +# bash ./scripts/cmd-all clippy "clippy --lib --bins" "--release -- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references" + +# check-code-nightly: +# name: Run Clippy and Fmt +# runs-on: ubuntu-latest +# +# steps: +# - name: Checkout Repository +# uses: actions/checkout@v4 +# +# - name: Run Prerequisite (for Nightly) +# uses: ./.github/actions/prerequisite-nightly +# with: +# token: ${{ secrets.GITHUB_TOKEN }} +# version: ${{ env.RUSTUP_NIGHTLY_VERSION }} +# +# - name: Rustfmt +# uses: actions-rs/cargo@v1 +# with: +# toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }} +# command: fmt +# args: --all -- --check +# +# - name: Clippy for Tests and Examples +# uses: actions-rs/cargo@v1 +# with: +# toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }} +# command: clippy +# args: --release --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references + +# cargo-test: +# name: Run Tests for Pallets and Clients +# needs: check-code +# if: needs.check-code.result == 'success' +# runs-on: ubuntu-latest +# env: +# SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }} +# SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }} +# DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }} +# DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }} +# +# steps: +# - name: Checkout Repository +# uses: actions/checkout@v4 +# +# - name: Run Prerequisite (for Nightly) +# uses: ./.github/actions/prerequisite-nightly +# with: +# token: ${{ secrets.GITHUB_TOKEN }} +# version: ${{ env.RUSTUP_NIGHTLY_VERSION }} +# +# - name: Run Tests for Pallets +# run: | +# bash ./scripts/cmd-pallets test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release" +# +# - name: Run Tests for Clients +# run: | +# bash ./scripts/cmd-clients test "+${{ env.RUSTUP_NIGHTLY_VERSION }} test" "--release" cargo-test-vault: name: Run Tests for Vault @@ -116,4 +116,4 @@ jobs: toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }} command: test # we only test the standalone-metadata - args: --release -p vault --features integration-test + args: --test '*' --package vault --features integration-test