Skip to content

Create CI workflow for Node.JS #31

Create CI workflow for Node.JS

Create CI workflow for Node.JS #31

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
repo:
type: string
required: false
env:
TARGET_REPO: ${{ inputs.repo || 'kir-dev/cmsch' }}
jobs:
count-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ env.TARGET_REPO }}
- uses: kir-dev/automations/actions/count-lines@main
id: counter
with:
target_directory: .
- name: Generate summary
run: |
echo 'There are ${{ steps.counter.outputs.line_count }} lines in this project' >> $GITHUB_STEP_SUMMARY
count-lines-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ env.TARGET_REPO }}
- uses: kir-dev/automations/actions/count-lines-docker@main
id: counter
with:
target_directory: .
- name: Generate summary
run: |
echo 'There are ${{ steps.counter.outputs.line_count }} lines in this project' >> $GITHUB_STEP_SUMMARY