Skip to content

Commit

Permalink
Add basic CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Sep 14, 2020
1 parent faf19be commit 3deee83
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: ${{ matrix.os }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Install clippy and rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Check formatting
run: cargo fmt -- --check

- name: Run clippy
run: cargo clippy -- -D warnings

0 comments on commit 3deee83

Please sign in to comment.