Skip to content

Commit

Permalink
build: adds CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Nov 8, 2023
1 parent 1089475 commit d843c83
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
- name: Install rustfmt
run: rustup component add rustfmt
- run: cargo fmt -- --check

lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
- name: Install clippy
run: rustup component add clippy
- run: cargo clippy --all-features -- --deny warnings

test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
- run: cargo test --all-features

docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
- run: cargo doc

0 comments on commit d843c83

Please sign in to comment.