Gathering detailed insights and metrics for dryrun-ci
Gathering detailed insights and metrics for dryrun-ci
Gathering detailed insights and metrics for dryrun-ci
Gathering detailed insights and metrics for dryrun-ci
npm install dryrun-ci
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
37
28
Beta Release Notice: This is a beta version (1.0.0-beta.1) of the tool. While it's feature-complete and usable in production, you may encounter some issues. Please report any bugs or suggestions in our issue tracker.
A comprehensive tool for testing GitLab CI/CD pipelines locally with both Web UI and Terminal CLI interfaces. Similar to GitHub's act
tool but designed specifically for GitLab CI/CD.
1npm install -g dryrun-ci
1git clone https://github.com/Asimatic-Labs/dryrun.git 2cd dryrun 3npm install 4npm run build-cli 5npm link
Download pre-built binaries from the releases page.
1# Scan current project 2dryrun-ci scan 3 4# Initialize GitLab CI configuration 5dryrun-ci init 6 7# Run pipeline 8dryrun-ci run 9 10# Start web interface 11dryrun-ci web
scan
- Project Analysis1# Scan current directory 2dryrun-ci scan 3 4# Scan specific path 5dryrun-ci scan --path /path/to/project
run
- Execute Pipeline1# Run full pipeline 2dryrun-ci run 3 4# Run specific job 5dryrun-ci run --job build_job 6 7# Run specific stage 8dryrun-ci run --stage test 9 10# Dry run (show execution plan) 11dryrun-ci run --dry-run 12 13# Use custom CI file 14dryrun-ci run --file custom-ci.yml
init
- Initialize Configuration1# Create basic configuration 2dryrun-ci init 3 4# Use specific template 5dryrun-ci init --template docker 6dryrun-ci init --template nixpacks
web
- Web Interface1# Start on default port (3000) 2dryrun-ci web 3 4# Start on custom port 5dryrun-ci web --port 8080
Use gct
as a shorter alias:
1gct scan 2gct run 3gct init --template docker
Start the web interface:
1npm run dev 2# or 3dryrun-ci web
Open http://localhost:3000 in your browser
Choose your workflow:
.gitlab-ci.yml
filesnixpacks.toml
configurationpackage.json
files.gitlab-ci.yml
, .gitlab-ci.yaml
nixpacks.toml
Dockerfile
, dockerfile
package.json
1stages: 2 - build 3 - test 4 - deploy 5 6build_job: 7 stage: build 8 image: node:18 9 script: 10 - npm install 11 - npm run build 12 artifacts: 13 paths: 14 - dist/ 15 16test_job: 17 stage: test 18 image: node:18 19 script: 20 - npm test 21 dependencies: 22 - build_job 23 24deploy_job: 25 stage: deploy 26 script: 27 - echo "Deploying application" 28 when: manual
1stages: 2 - build 3 - test 4 - deploy 5 6build_image: 7 stage: build 8 image: docker:latest 9 services: 10 - docker:dind 11 script: 12 - docker build -t myapp . 13 14test_app: 15 stage: test 16 image: myapp:latest 17 script: 18 - npm test 19 20deploy_production: 21 stage: deploy 22 image: docker:latest 23 script: 24 - docker push myapp:latest 25 only: 26 - main
1stages: 2 - build 3 - test 4 - deploy 5 6variables: 7 NIXPACKS_BUILD: "true" 8 9build_with_nixpacks: 10 stage: build 11 image: nixos/nix 12 script: 13 - nixpacks build . --name myapp 14 artifacts: 15 paths: 16 - dist/ 17 18test_app: 19 stage: test 20 script: 21 - npm test 22 dependencies: 23 - build_with_nixpacks
Set custom variables for your pipeline:
1variables: 2 NODE_ENV: "production" 3 API_URL: "https://api.example.com"
Control job execution order:
1deploy_job: 2 dependencies: 3 - build_job 4 - test_job
Run jobs based on conditions:
1deploy_job: 2 only: 3 - main 4 when: manual
Share files between jobs:
1build_job: 2 artifacts: 3 paths: 4 - dist/ 5 expire_in: 1 hour
1git clone https://github.com/your-username/gitlab-ci-local-tester.git 2cd gitlab-ci-local-tester 3npm install
1# Start web development server 2npm run dev 3 4# Build CLI 5npm run build-cli 6 7# Run CLI locally 8npm run cli 9 10# Build for production 11npm run build 12 13# Create binary packages 14npm run pkg
├── src/
│ ├── app/ # Next.js web interface
│ ├── components/ # React components
│ ├── utils/ # Shared utilities
│ ├── types/ # TypeScript types
│ └── store/ # State management
├── bin/
│ └── cli.js # CLI entry point
├── package.json
└── README.md
MIT License - see LICENSE file for details
For issues and questions:
Built with ❤️ for the GitLab community
Whether you prefer a beautiful web interface or the speed of terminal commands, GitLab CI/CD Local Tester has you covered. Test your pipelines locally, catch errors early, and deploy with confidence!
No vulnerabilities found.
No security vulnerabilities found.