Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
pull_request:
push:
branches:
- master
- main

env:
RUSTFLAGS: -Dwarnings

jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
rust: [stable]

steps:
- uses: actions/checkout@master

- name: check
run: cargo check --workspace --all-targets

- name: tests
run: cargo test --workspace
env:
RUST_BACKTRACE: short

clippy_fmt_docs:
name: Checking fmt, clippy, and docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: update clippy
run: rustup toolchain update stable

- name: install nightly
run: rustup toolchain install nightly

- name: clippy
run: cargo clippy --workspace --all-targets

- name: fmt
run: cargo fmt --all -- --check

- name: docs
run: cargo +nightly doc --no-deps
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.