Create CI workflow for Node.JS #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |