Skip to content

Commit

Permalink
No need for multistep.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasn committed Apr 29, 2022
1 parent 5194857 commit 3e7a323
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ on:
- '.github/workflows/server-ci.yml'

jobs:
check:
test-versions:
name: Server CI
# Run `cargo check` first to ensure that the pushed code at least compiles.
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta]
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
components: clippy, rustfmt
Expand All @@ -41,23 +43,6 @@ jobs:
command: fmt
args: --manifest-path server/Cargo.toml --all -- --check

test-versions:
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta]
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
with:
working-directory: server

- name: Start dependencies
run: docker-compose -f "server/testing-docker-compose.yml" up -d

Expand Down

0 comments on commit 3e7a323

Please sign in to comment.