Update clippy and fmt jobs.

This commit is contained in:
LukeMathWalker 2021-01-23 18:00:03 +00:00
parent 8aaed7bef8
commit 384f2c5202

View file

@ -51,10 +51,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
@ -76,18 +75,17 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: clippy
toolchain: stable
override: true
- run: rustup component add clippy
- name: Migrate database
run: |
sudo apt-get install libpq-dev -y
cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres
SKIP_DOCKER=true ./scripts/init_db.sh
- uses: actions-rs/cargo@v1
- uses: actions-rs/clippy-check@v1
with:
command: clippy
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings
coverage: