From abea70ff8ec112e077ca180807c007e71ffd5d2a Mon Sep 17 00:00:00 2001 From: Jacob Phillips Date: Sun, 20 Aug 2023 06:17:40 -0400 Subject: [PATCH] build and test the workspace --- .github/workflows/rust.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3fde6d6..464d816 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,25 +2,20 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build - run: | - cd lib - cargo build --verbose - - name: Run tests - run: | - cd example - cargo test --verbose + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose