Adjust CI

main
Michal S 2 years ago
parent 4db265b08e
commit 20f62c309c
No known key found for this signature in database
GPG Key ID: 52F8801FC912EB4F

@ -1,34 +0,0 @@
name: Lint Code
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
AMETHYST_CODENAME: "Clippedy Clip"
jobs:
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Format
uses: actions-rust-lang/rustfmt@v1.0.0
clippy:
name: cargo clippy
runs-on: ubuntu-latest
container: ghcr.io/crystal-linux/crystal:latest
steps:
- uses: actions/checkout@v1
- run: |
sudo pacman -Syu --needed --noconfirm
sudo pacman -S --noconfirm rust
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

@ -1,6 +1,13 @@
image: "rust:latest"
test:cargo:
version:cargo:
script:
- rustc --version && cargo --version
- cargo test --workspace --verbose
clippy:cargo:
script:
- cargo clippy --no-deps -- -D clippy::all
fmt:cargo:
script:
- cargo fmt --check

Loading…
Cancel
Save