Skip to content

Invidious is an alternative front-end to YouTube

Add job to lint code through Ameba in CI

syeopite45fd4a1968e7
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 057e4d61..0db0cb75 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -124,4 +124,26 @@ jobs:
- name: Test Docker
run: while curl -Isf http://localhost:3000; do sleep 1; done
+ ameba_lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - name: Install Crystal
+ uses: crystal-lang/[email protected]
+ with:
+ crystal: latest
+
+ - name: Cache Shards
+ uses: actions/cache@v3
+ with:
+ path: ./lib
+ key: shards-${{ hashFiles('shard.lock') }}
+
+ - name: Install Shards
+ run: shards install
+ - name: Run Ameba linter
+ run: bin/ameba