Skip to content

Commit

Permalink
Merge pull request #32 from PastaPastaPasta/initial-ci
Browse files Browse the repository at this point in the history
ci: implement initial ci on github actions
  • Loading branch information
QuantumExplorer authored Jan 20, 2022
2 parents b39410e + 6ae37b6 commit 2e397d5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push, pull_request]

name: CI

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: cargo test
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: rustup component add clippy --toolchain nightly
- run: cargo clippy
errors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: cargo check
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"

0 comments on commit 2e397d5

Please sign in to comment.