Skip to content

initial commit

initial commit #13

Workflow file for this run

on:
push:
name: Tests
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- name: Install Prettier
run: npm install -g prettier
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
- name: Run Prettier
run: prettier --check "**/*.{md,json,prettierrc}"
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Run tests
uses: actions-rs/cargo@v1
env:
RUST_BACKTRACE: 1
with:
command: test