rayflap

A Flappy Bird clone written in C and compiled to WebAssembly.
git clone https://unitehenry.com/git/rayflap.git
Log | Files | Refs | README

commit 7607caf6d87a30a120500adcd9bae54e002e5319
parent eca3547b28dc20414e2df426abefe07775059f2d
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 19 Apr 2026 18:32:56 +0000

ci: lint

Diffstat:
M.github/workflows/main.yml | 14++++++++++++++
Ascripts/lint | 8++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -5,8 +5,22 @@ on: branches: [ main ] jobs: + check: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Make scripts executable + run: chmod +x scripts/lint + + - name: Check linter + run: scripts/lint + build: runs-on: ubuntu-latest + needs: [check] steps: - name: Checkout diff --git a/scripts/lint b/scripts/lint @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +clang-format -i src/* + +# Check if any files in the linted directories were modified +if git diff --name-only | grep -E '^(src/)' | grep -q .; then + echo "Linting required edits. Files were modified." + exit 1 +fi