Skip to content

Commit

Permalink
Speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Oct 11, 2024
1 parent 5a7dfb8 commit 3011329
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Set up Rust
run: |
rustup update ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup component add rustfmt
rustup component add clippy
- uses: Swatinem/rust-cache@v2
- name: Run PostgreSQL 12
run: |
docker run --env POSTGRES_USER=postgres \
Expand Down Expand Up @@ -62,12 +69,6 @@ jobs:
-d -p 5437:5432 postgres:17.0-alpine \
postgres -c shared_preload_libraries=pg_stat_statements
sleep 15
- name: Set up Rust
run: |
rustup update ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup component add rustfmt
rustup component add clippy
- name: Check
run: cargo check
- name: Fmt
Expand Down

0 comments on commit 3011329

Please sign in to comment.