summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-07-10 22:13:45 +0200
committerSamantaz Fox <coding@samantaz.fr>2024-07-10 22:13:45 +0200
commit0a54e265364f119e8c3f7b17e5e6d6c37dba3e52 (patch)
tree3a9eed63e04affddd9e9873b335d4ff831df8f9d /.github/workflows
parentd135e5b7f791bbf9ea87b591fd24e3abb0908e9a (diff)
parent6b429575bfa8adcdf2a57a09312c7700237d8a13 (diff)
downloadinvidious-0a54e265364f119e8c3f7b17e5e6d6c37dba3e52.tar.gz
invidious-0a54e265364f119e8c3f7b17e5e6d6c37dba3e52.tar.bz2
invidious-0a54e265364f119e8c3f7b17e5e6d6c37dba3e52.zip
CI: Run Ameba (#4753)
This PR simply adds Ameba to the CI but doesn't actually fix any of the detected issues.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 057e4d61..eb18f639 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -124,4 +124,28 @@ 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
+ ./bin
+ key: shards-${{ hashFiles('shard.lock') }}
+
+ - name: Install Shards
+ run: shards install
+ - name: Run Ameba linter
+ run: bin/ameba