Skip to content

Commit

Permalink
switch to github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hlbarber committed Dec 28, 2023
1 parent b31ffb4 commit 4ddea4c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 9 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on: [push, pull_request]

env:
RUSTFLAGS: -Dwarnings

jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, miri
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --each-feature
- run: cargo hack test --each-feature
- run: cargo hack clippy --each-feature
- run: cargo hack miri test --each-feature

fmt:
name: Formatting
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --check

examples:
name: Examples
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack run --example basic --each-feature
- run: cargo hack miri run --example basic --each-feature
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit 4ddea4c

Please sign in to comment.