Skip to content

Commit

Permalink
yml2
Browse files Browse the repository at this point in the history
  • Loading branch information
NYBACHOK committed Oct 1, 2024
1 parent 852fed8 commit e55ec6c
Showing 1 changed file with 28 additions and 40 deletions.
68 changes: 28 additions & 40 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -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


- 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

0 comments on commit e55ec6c

Please sign in to comment.