Skip to content

Commit

Permalink
test(ci): add smoke tests for commander integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Feb 15, 2023
1 parent d127242 commit d01d0b7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
FORCE_COLOR: 3
TERM: xterm-256color

- name: E2E Smoke Test
if: matrix.os == 'ubuntu-latest'
run: ./test/smoke.sh

- name: Lint
run: yarn lint
env:
Expand Down
24 changes: 24 additions & 0 deletions test/smoke.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

function check_options {
command_name=$1
node dist/bin.js $command_name
node dist/bin.js $command_name --filter "."
node dist/bin.js $command_name --source package.json
node dist/bin.js $command_name --types dev
node dist/bin.js $command_name --types dev,workspace
}

check_options "fix-mismatches"
check_options "lint-semver-ranges"
check_options "list-mismatches"
check_options "list"
check_options "set-semver-ranges"

node dist/bin.js format
node dist/bin.js format --source package.json
node dist/bin.js format --indent " "

node dist/bin.js lint-semver-ranges --semver-range ""

node dist/bin.js set-semver-ranges --semver-range ""

0 comments on commit d01d0b7

Please sign in to comment.