Skip to content

Commit

Permalink
cicd: introduce CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hhs629629 committed Sep 28, 2023
1 parent d573f8b commit 9258f75
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

env:
CARGO_TERM_COLOR: always

jobs:
format:
name: rustfmt
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

test:
name: cargo test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --all-features

0 comments on commit 9258f75

Please sign in to comment.