From bf35c981a239c6b24c3f09cb9d4b14c7d2fd2076 Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Wed, 4 Dec 2024 21:18:43 +0100 Subject: [PATCH] Added formatting CI workflow --- .github/workflows/formatting.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..f8ec122 --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,25 @@ +name: Formatting + +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [main, release**] + pull_request: + branches: [main, release**] + # Don't run on draft PR's, see: https://github.com/orgs/community/discussions/25722#discussioncomment-3248917 + types: [opened, synchronize, reopened, ready_for_review] + # Allows us to run the workflow manually from the Actions tab + workflow_dispatch: + +jobs: + generate-doc-options: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - run: nix fmt -- --check .