From e55ec6cd5b8bffb9076f699923df010c8493962c Mon Sep 17 00:00:00 2001 From: NYBACHOK Date: Tue, 1 Oct 2024 09:18:51 +0300 Subject: [PATCH] yml2 --- .github/workflows/run_tests.yml | 68 ++++++++++++++------------------- 1 file changed, 28 insertions(+), 40 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 75b3fd4c..482fff61 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -1,47 +1,35 @@ -name: Run tests +name: Run tests on: - # Run on any PR - pull_request: - - + pull_request: null jobs: build_artifacts: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - - name: Checkout # Clone git repository - uses: actions/checkout@v3 - - - name: Install dependencies - run: sudo apt-get install -y llvm clang libclang-dev build-essential libhidapi-dev libudev-dev - - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - - - name: Build artifacts - uses: cargo test --no-run --features=it - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ubuntu-latest-heaven - path: target/release/heaven - + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install -y llvm clang libclang-dev build-essential + libhidapi-dev libudev-dev + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + - name: Build artifacts + uses: cargo test --no-run --features=it + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ubuntu-latest-heaven + path: target/release/heaven tests: - runs-on: ubuntu-latest - needs: build_artifacts - + runs-on: ubuntu-latest + needs: build_artifacts steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Download artifact - uses: actions/download-artifact@v2 - with: - name: ubuntu-latest-heaven - path: artifacts/ubuntu - - - name: Execute tests - run: cargo test --features=it --no-fail-fast - - \ No newline at end of file + - name: Checkout + uses: actions/checkout@v3 + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: ubuntu-latest-heaven + path: artifacts/ubuntu + - name: Execute tests + run: cargo test --features=it --no-fail-fast