From d90875f6cb4aa927903c4b38b3503b9a79931503 Mon Sep 17 00:00:00 2001 From: Henry Lydecker Date: Wed, 13 Mar 2024 15:18:19 +1100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..20c8791 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: "c2c" +on: [push] + +jobs: + test: + name: setup environment + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: install cloc + uses: actions/setup-node@v1 + with: + node-version: '12' + - run: sudo npm install cloc -g + + - name: comment to code ratio + uses: deep5050/comment-to-code-ratio-action@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + issue_number: 1 + options: '--quiet ./ --hide-rate --git --unix --md --out=report.md --timeout=20 --by-percent=cmb --by-file --exclude-dir=node_modules --exclude-lang=JSON,XML'