Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chhe committed Feb 22, 2024
1 parent dd8f218 commit 0936d54
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: main

on:
push:
branches: [ cli ]
pull_request:
branches: [ cli ]

env:
CARGO_TERM_COLOR: always

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: checkoout
uses: actions/checkout@v3

- name: Install latest rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt

- name: Format
run: cargo fmt -- --check

0 comments on commit 0936d54

Please sign in to comment.