Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
/ actions-node Public archive

Composite Github Action to provides opinionated NodeJS steps to performs Continuous Integration

License

Notifications You must be signed in to change notification settings

escemi-tech/actions-node

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8205be3 · Mar 29, 2024
Mar 15, 2024
Oct 18, 2021
Feb 5, 2022
Oct 18, 2021
Jan 12, 2022
Oct 12, 2021
Oct 12, 2021
Mar 29, 2024
Mar 29, 2024
Nov 24, 2023
Feb 16, 2024

Repository files navigation

⚠ Deprecated - Use https://github.com/hoverkraft-tech/ci-github-nodejs


branding<icon:box color:green> GitHub Action: NodeJS Continuous Integration steps

Composite Github Action to provides opinionated NodeJS steps to performs Continuous Integration

Usage

- uses: /@v0.0.0
  with:
    # Description: Checkout parameters. Must be a json object. See
    # https://github.com/actions/checkout
    #
    # Default: { }
    checkout: ""

    # Description: Used to specify a package manager. Supported values: 'yarn'
    #
    # Default: yarn
    package-manager: ""

    # Description: Build parameters. Must be a string or a json object.
    #
    # Default: build
    build: ""

    # Description: Optional flag to enable check steps.
    #
    checks: ""

    # Description: Optional flag to enable linting
    #
    # Default: true
    lint: ""

    # Description: Code QL analysis language. See
    # https://github.com/github/codeql-action
    #
    # Default: typescript
    code-ql: ""

    # Description: Optional flag to enable test. See
    # https://github.com/github/codeql-action
    #
    # Default: true
    test: ""

    # Description: Optional flag to enable coverage report. See
    # https://github.com/codecov/codecov-action
    #
    # Default: true
    coverage: ""

Steps

Inputs

See action.yml

Input Description Default Required
checkout Checkout parameters. Must be a json object. See https://github.com/actions/checkout { } false
package-manager Used to specify a package manager. Supported values: 'yarn' yarn false
build Build parameters. Must be a string or a json object. build false
checks Optional flag to enable check steps. false
lint Optional flag to enable linting true false
code-ql Code QL analysis language. See https://github.com/github/codeql-action typescript false
test Optional flag to enable test. See https://github.com/github/codeql-action true false
coverage Optional flag to enable coverage report. See https://github.com/codecov/codecov-action true false

Examples

checkout:

It can be a json object to specify the token to be used. Example:

steps:
  - uses: escemi-tech/actions-node@main
    with:
      checkout: '{ "token": "${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}" }'

It can be a false to disabliing checkout. Example:

steps:
  - uses: escemi-tech/actions-node@main
    with:
      checkout: false

build:

It can be a string to specify the script to run. Example:

steps:
  - uses: escemi-tech/actions-node@main
    with:
      build: "build:prod"

It can be a json object to specify the script and / or the env variables. Example:

steps:
  - uses: escemi-tech/actions-node@main
    with:
      build: '{ "env": { "NODE_ENV": "production" } }'

Helping Project

❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !

Contributing

👍 If you wish to contribute to actions-node, please read the CONTRIBUTING.md file, PRs are Welcome !

Author

🏢 ESCEMI contact@escemi.com

License

📝 Copyright © 2021 ESCEMI contact@escemi.com.
This project is MIT licensed.