Skip to content

test clippy gha

test clippy gha #126

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout code
uses: actions/checkout@v2
- name: 🔗 Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: 💰 Cache
uses: Swatinem/rust-cache@v1
- name: 🔨 Build and test
uses: actions-rs/cargo@v1
with:
command: test
lint:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout code
uses: actions/checkout@v2
- name: 🔗 Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: clippy
- name: 💰 Cache
uses: Swatinem/rust-cache@v1
- name: 📎 Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout code
uses: actions/checkout@v2
- name: 🔗 Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
- name: ⌨️ Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check --verbose