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
80 changes: 0 additions & 80 deletions .circleci/config.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Check, test, and build the code

on:
push:
schedule:
- cron: 15 */6 * * *

jobs:
check:
name: Check the code
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [nightly]
steps:
- name: Install the appropriate Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- uses: actions/checkout@v1
- name: Run rustfmt
run: |
rustup component add rustfmt
cargo fmt -- --check
- name: Run clippy
run: |
rustup component add clippy
cargo clippy -- -D clippy::all -W clippy::cargo -W clippy::pedantic

test:
name: Run tests and measure coverage
runs-on: ubuntu-latest
strategy:
matrix:
rust: [nightly]
steps:
- name: Install the appropriate Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- uses: actions/checkout@v1
- name: Run tests
run: |
cargo test
- name: Generate and upload coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cargo install --force cargo-tarpaulin
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
- uses: actions/upload-artifact@master
with:
name: cobertura.xml
path: cobertura.xml