Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server CI: fix caching to actually work #414

Merged
merged 2 commits into from
Apr 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,36 @@ 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
- uses: Swatinem/rust-cache@v1
with:
working-directory: server

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path server/Cargo.toml --all --all-targets --all-features

- name: rustfmt
uses: actions-rs/cargo@v1
with:
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

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

Expand Down