zellij/.github/workflows/rust.yml
2021-04-13 16:44:44 +01:00

61 lines
1.2 KiB
YAML

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add WASM target
run: rustup target add wasm32-wasi
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: make
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Check Format
uses: actions-rs/cargo@v1
with:
command: make
args: check-format
clippy:
name: Check For Clippy Lints
runs-on: ubuntu-latest
steps:
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Check Lints
uses: actions-rs/cargo@v1
with:
command: make
args: clippy -D clippy::all