A tool to run github-linguist against your repository in a CI/CD pipeline.
This tool has been written and tested using GitHub Actions but it should work out of the box with a lot of other CI/CD tools.
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Run GitHun Linguist
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/github-linguist/master/pipeline.sh)
This is an example of the output report generated by this tool, this is the actual output from the tool running against itself.
--------------------------------------------------------------- Stage 1 - Install Prerequisites --
[ OK ] gem install --quiet github-linguist
------------------------------------------------------- Stage 2 - Run github-linguist (v7.16.1) --
100.00% 10193 Shell
Shell:
pipeline.sh
---------------------------------------------------------------------------- Stage 3 - Complete --
Github Linguist manages its own file identification.