diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dae354c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,9 @@ +name: CI +'on': + push: null + pull_request: null +env: + CARGO_TERM_COLOR: always +jobs: + format_code: + uses: ./.github/workflows/ci_format_code.yml diff --git a/.github/workflows/ci_format_code.yml b/.github/workflows/ci_format_code.yml new file mode 100644 index 0000000..e7d1b22 --- /dev/null +++ b/.github/workflows/ci_format_code.yml @@ -0,0 +1,11 @@ +name: CI Format +'on': + workflow_call: null +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - name: Checkout (GitHub) + uses: actions/checkout@v4 + - name: Verify Code is formatted + run: cargo fmt -- --check