mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-01-05 22:58:49 +00:00
Update clippy and fmt jobs.
This commit is contained in:
parent
5470836866
commit
d81dcb2e40
1 changed files with 4 additions and 6 deletions
10
.github/workflows/general.yml
vendored
10
.github/workflows/general.yml
vendored
|
@ -51,10 +51,9 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- run: rustup component add rustfmt
|
components: rustfmt
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
|
@ -76,18 +75,17 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
components: clippy
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- run: rustup component add clippy
|
|
||||||
- name: Migrate database
|
- name: Migrate database
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libpq-dev -y
|
sudo apt-get install libpq-dev -y
|
||||||
cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres
|
cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres
|
||||||
SKIP_DOCKER=true ./scripts/init_db.sh
|
SKIP_DOCKER=true ./scripts/init_db.sh
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: -- -D warnings
|
args: -- -D warnings
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
|
|
Loading…
Reference in a new issue