Skip to content

A GitHub action for running nx commands with fallback to --no-cloud if they fail

License

Notifications You must be signed in to change notification settings

robsonos/nx-cloud-skipper-action

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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nx Cloud Skipper

GitHub Super-Linter Continuous Integration Check Transpiled JavaScript CodeQL Coverage

This action runs npx nx commands with automatic fallback to --no-cloud if they fail.

Basic usage

jobs:
  job_id:
    steps:
      - name: Check out Git repository
          uses: actions/checkout@v4

      - name: Setup NodeJS
        uses: actions/setup-node@v4

      - name: Install dependencies
        run: npm ci

    ...

      - name: Run CI on affected projects
        uses: robsonos/nx-cloud-skipper-action
        with:
          command: affected -t lint test build

The above will run npx nx affected -t lint test build and if the default errorMessages are found in the log it will run npx nx affected -t lint test build --no-cloud

Inputs

Name Description Required Default
command Arguments to pass to npx nx (e.g., affected -t lint test build) true
errorMessages Set the NX_BASE environment variable (optional) false Workspace is unable to be authorized
exceeding the FREE plan

Outputs

Name Description
status Status of the action (success/failure)

About

A GitHub action for running nx commands with fallback to --no-cloud if they fail

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 58.2%
  • Shell 25.2%
  • JavaScript 16.6%