Skip to content

Commit

Permalink
Added formatting CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Dec 4, 2024
1 parent c6a6d0f commit bf35c98
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit bf35c98

Please sign in to comment.