Merge pull request #27 from storopoli/dependabot/github_actions/cargo… #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: zig-fmt | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
clang-format: | |
name: Check if zig code is formatted | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup zig | |
uses: mlugg/setup-zig@v1 | |
- name: Check zig code format | |
run: zig fmt --check ./code/zig/*.zig |