mirror of
https://github.com/kristoferssolo/zero2prod.git
synced 2025-10-21 20:10:40 +00:00
fix(workflows)
This commit is contained in:
parent
c4c53d57c0
commit
759c11c264
10
.github/workflows/CI.yml
vendored
10
.github/workflows/CI.yml
vendored
@ -70,6 +70,7 @@ jobs:
|
|||||||
- name: Migrate database
|
- name: Migrate database
|
||||||
run: SKIP_DOCKER=true ./scripts/init_db
|
run: SKIP_DOCKER=true ./scripts/init_db
|
||||||
- name: Linting
|
- name: Linting
|
||||||
|
run: cargo clippy -- -D warnings
|
||||||
coverage:
|
coverage:
|
||||||
name: Code coverage
|
name: Code coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -92,13 +93,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: sqlx-${{ env.SQLX_VERSION }}
|
key: sqlx-${{ env.SQLX_VERSION }}
|
||||||
- name: Install sqlx-cli
|
- name: Install sqlx-cli
|
||||||
run:
|
run: cargo install sqlx-cli --version=${{ env.SQLX_VERSION }} --features ${{ env.SQLX_FEATURES }} --no-default-features --locked
|
||||||
cargo install sqlx-cli
|
|
||||||
--version=${{ env.SQLX_VERSION }}
|
|
||||||
--features ${{ env.SQLX_FEATURES }}
|
|
||||||
--no-default-features
|
|
||||||
--locked
|
|
||||||
- name: Migrate database
|
- name: Migrate database
|
||||||
run: SKIP_DOCKER=true ./scripts/init_db
|
run: SKIP_DOCKER=true ./scripts/init_db
|
||||||
- name: Generate code coverage
|
- name: Generate code coverage
|
||||||
run: cargo install cargo-tarpaulin && cargo tarpaulin --verbose --workspace run: cargo clippy -- -D warnings
|
run: cargo install cargo-tarpaulin && cargo tarpaulin --verbose --workspace
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user