Skip to content

Commit

Permalink
fix: concat jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Jul 11, 2024
1 parent 3662de7 commit c0cd489
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/rust_build_and_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cargo
name: cargo

on:
push:
Expand All @@ -14,8 +14,8 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build (stable)
build_and_test:
name: build and test
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -31,32 +31,5 @@ jobs:
- name: Build Project
run: cargo build --manifest-path apps/server/Cargo.toml --verbose

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: target

test:
name: Test (stable)
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
toolchain:
- stable
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install Rust Toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Download Build Artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: target

- name: Run Tests
run: cargo test --manifest-path apps/server/Cargo.toml --verbose -- --nocapture

0 comments on commit c0cd489

Please sign in to comment.