Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/loc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'loc'

on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main

jobs:
loc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./app
id: loc
# Use the output from the `loc` step
- name: Get the LOC
run: echo "The project has ${{ steps.loc.outputs.locs }} lines of code"
18 changes: 18 additions & 0 deletions app/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'lines-of_code-counter'
description: 'Github Action that counts lines of code'
author: 'Vasyl Prokudin'
inputs:
fileOrFolderToProcess:
required: false
description: 'The file or folder to process'
default: '.'
filesAndFoldersToIgnore:
required: false
description: 'A list of directories to ignore. Supports glob patterns.'
default: '["node_modules", ".git", "dist", ".github"]'
outputs:
locs:
description: 'The amount of LOC of your project without comments and empty lines'
runs:
using: 'node12'
main: 'dist/index.js'
Loading