From cd376f5dab0a290269d3dc798427a4ef5e483b92 Mon Sep 17 00:00:00 2001 From: ok300 <106775972+ok300@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:24:40 +0100 Subject: [PATCH] Add CI config --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..fe7a05148 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push events but only for the "main" branch + push: + branches: [ main ] + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + + fmt: + name: Cargo Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check Rust Formatting + run: | + cd lib + cargo fmt -- --check + cd ../cli + cargo fmt -- --check