zerokit/.github/workflows/ci.yml

43 lines
948 B
YAML
Raw Normal View History

2022-03-16 05:21:31 +00:00
on:
push:
branches:
- master
pull_request:
name: Tests
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: cargo test
run: |
cargo test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy
# Currently not treating warnings as error, too noisy
# -- -D warnings