diff options
| author | syeopite <syeopite@syeopite.dev> | 2024-06-16 13:11:48 -0700 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2024-06-16 13:21:55 -0700 |
| commit | 45fd4a1968e7c19b1366eb6c05f370efbd2756cd (patch) | |
| tree | 0f08b745fd21965b01405829d1d9eb2d0ddcafd3 | |
| parent | 1ae14cc22468ce6e0eb794752b113604b1d5582d (diff) | |
| download | invidious-45fd4a1968e7c19b1366eb6c05f370efbd2756cd.tar.gz invidious-45fd4a1968e7c19b1366eb6c05f370efbd2756cd.tar.bz2 invidious-45fd4a1968e7c19b1366eb6c05f370efbd2756cd.zip | |
Add job to lint code through Ameba in CI
| -rw-r--r-- | .github/workflows/ci.yml | 22 |
1 files changed, 22 insertions, 0 deletions
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/install-crystal@v1.8.0 + 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 |
