Skip to content

Commit

Permalink
CI: Remove obsolete diesel database setup call
Browse files Browse the repository at this point in the history
The test suite is setting this up automatically. We don't need to do this manually anymore.
  • Loading branch information
Turbo87 committed Jan 16, 2024
1 parent 80f0097 commit 2d14d23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ env:
CARGO_TERM_COLOR: always
# renovate: datasource=crate depName=cargo-deny versioning=semver
CARGO_DENY_VERSION: 0.14.3
# renovate: datasource=crate depName=diesel_cli versioning=semver
DIESEL_CLI_VERSION: 2.1.1
# renovate: datasource=npm depName=pnpm
PNPM_VERSION: 8.14.1

Expand Down Expand Up @@ -110,7 +108,6 @@ jobs:

env:
RUST_BACKTRACE: 1
DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
TEST_DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
RUSTFLAGS: "-D warnings"
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
Expand All @@ -131,12 +128,7 @@ jobs:

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3

- run: cargo install diesel_cli --vers ${{ env.DIESEL_CLI_VERSION }} --no-default-features --features postgres --debug
- run: diesel database setup --locked-schema

- run: cargo build --tests --workspace
- run: cargo test --workspace

Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ env:
CARGO_TERM_COLOR: always
# renovate: datasource=crate depName=cargo-tarpaulin versioning=semver
CARGO_TARPAULIN_VERSION: 0.27.3
# renovate: datasource=crate depName=diesel_cli versioning=semver
DIESEL_CLI_VERSION: 2.1.1

jobs:
coverage:
Expand All @@ -21,7 +19,6 @@ jobs:

env:
RUST_BACKTRACE: 1
DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
TEST_DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
RUSTFLAGS: "-D warnings"
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
Expand All @@ -42,14 +39,8 @@ jobs:

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

# Set up Rust
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3

# Set up database
- run: cargo install diesel_cli --vers ${{ env.DIESEL_CLI_VERSION }} --no-default-features --features postgres --debug
- run: diesel database setup --locked-schema

# Set up cargo-tarpaulin and run the tests
- run: cargo install cargo-tarpaulin --version ${{ env.CARGO_TARPAULIN_VERSION }}
- run: cargo tarpaulin --avoid-cfg-tarpaulin --workspace

0 comments on commit 2d14d23

Please sign in to comment.