Skip to content

Commit 7607003

Browse files
authored
"omicron_dev db-run" tool for running CockroachDB in the background (#48)
1 parent 1cf8074 commit 7607003

17 files changed

+1838
-27
lines changed

.github/workflows/rust.yml

+21-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,36 @@ jobs:
2828
- name: Report Clippy version
2929
run: cargo clippy -- --version
3030
- name: Run Clippy Lints
31-
run: cargo clippy -- -D warnings
31+
#
32+
# Clippy's style nits are useful, but not worth keeping in CI. This
33+
# override belongs in src/lib.rs, and it is there, but that doesn't
34+
# reliably work due to rust-lang/rust-clippy#6610.
35+
#
36+
run: cargo clippy -- -D warnings -A clippy::style
3237

3338
build-and-test:
3439
runs-on: ${{ matrix.os }}
3540
strategy:
41+
fail-fast: false
3642
matrix:
37-
os: [ ubuntu-18.04, windows-2019, macos-10.15 ]
43+
os: [ ubuntu-18.04, macos-10.15 ]
3844
steps:
3945
# actions/checkout@v2
4046
- uses: actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b
4147
- name: Report cargo version
4248
run: cargo --version
49+
- name: Configure GitHub cache for CockroachDB binaries
50+
id: cache-cockroachdb
51+
52+
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
53+
with:
54+
key: ${{ runner.os }}-cockroach-binary-v1
55+
path: "cockroach"
4356
- name: Build
44-
run: cargo build --tests --verbose
57+
run: cargo build --all-targets --verbose
58+
- name: Download CockroachDB binary
59+
if: steps.cache-cockroachdb.outputs.cache-hit != 'true'
60+
run: bash ./tools/ci_download_cockroachdb
4561
- name: Run tests
46-
run: cargo test --verbose
62+
# We modify PATH to put "./cockroach" on the PATH for the test suite.
63+
run: PATH="$PATH:." cargo test --verbose

0 commit comments

Comments
 (0)