mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-25 22:41:30 +02:00
feat: added cli tests to testing github workflow
This commit is contained in:
parent
1bc2c8d0a6
commit
a0beefa9bc
@ -5,7 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
unit-test:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -17,8 +17,6 @@ jobs:
|
|||||||
run: npm ci --legacy-peer-deps
|
run: npm ci --legacy-peer-deps
|
||||||
- name: Test Package bruno-query
|
- name: Test Package bruno-query
|
||||||
run: npm run test --workspace=packages/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
|
- name: Test Package bruno-lang
|
||||||
run: npm run test --workspace=packages/bruno-lang
|
run: npm run test --workspace=packages/bruno-lang
|
||||||
- name: Test Package bruno-schema
|
- name: Test Package bruno-schema
|
||||||
@ -27,10 +25,31 @@ jobs:
|
|||||||
run: npm run test --workspace=packages/bruno-app
|
run: npm run test --workspace=packages/bruno-app
|
||||||
- name: Test Package bruno-js
|
- name: Test Package bruno-js
|
||||||
run: npm run test --workspace=packages/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
|
- name: Test Package bruno-cli
|
||||||
run: npm run test --workspace=packages/bruno-cli
|
run: npm run test --workspace=packages/bruno-cli
|
||||||
- name: Test Package bruno-electron
|
- 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:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
@ -1,15 +1,3 @@
|
|||||||
# bruno-sanity collection
|
# bruno-tests collection
|
||||||
|
|
||||||
API Collection to run sanity tests on Bruno.
|
API Collection to run sanity tests on Bruno CLI.
|
||||||
|
|
||||||
### 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
|
|
||||||
```
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user