Skip to content

Commit

Permalink
feat: added cli tests to testing github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Jan 29, 2024
1 parent 1bc2c8d commit a0beefa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/unit-tests.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
branches: [main]
jobs:
tests:
unit-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -17,8 +17,6 @@ jobs:
run: npm ci --legacy-peer-deps
- name: Test Package bruno-query
run: npm run test --workspace=packages/bruno-query
- name: Build Package bruno-query
run: npm run build --workspace=packages/bruno-query
- name: Test Package bruno-lang
run: npm run test --workspace=packages/bruno-lang
- name: Test Package bruno-schema
Expand All @@ -27,10 +25,31 @@ jobs:
run: npm run test --workspace=packages/bruno-app
- name: Test Package bruno-js
run: npm run test --workspace=packages/bruno-js
- name: Test Package bruno-common
run: npm run test --workspace=packages/bruno-common
- name: Test Package bruno-cli
run: npm run test --workspace=packages/bruno-cli
- name: Test Package bruno-electron
run: npm run test --workspace=packages/bruno-electron --passWithNoTests
run: npm run test --workspace=packages/bruno-electron

cli-test:
name: Run Bruno CLI Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies and run tests
run: |
cd sanity/collection
npm install @usebruno/cli -g
bru run --env Prod --output junit.xml --format junit
- name: Publish Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Report
path: sanity/collection/junit.xml
reporter: java-junit

prettier:
runs-on: ubuntu-latest
Expand Down
16 changes: 2 additions & 14 deletions packages/bruno-tests/collection/readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# bruno-sanity collection
# bruno-tests collection

API Collection to run sanity tests on Bruno.

### Test

```bash
npm i @usebruno/cli -g

# Test locally
bru run --env Local

# Test on production
bru run --env Prod --output junit.xml --format junit
```
API Collection to run sanity tests on Bruno CLI.

0 comments on commit a0beefa

Please sign in to comment.