Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed Oct 29, 2022
1 parent 7a18e43 commit b4f5960
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on: push
name: Rust CI
jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: check for errors
uses: actions-rs/cargo@v1
with:
command: check
args: --locked
env:
RUST_BACKTRACE: 1
test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --locked
env:
RUST_BACKTRACE: 1
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: run linter
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

0 comments on commit b4f5960

Please sign in to comment.