2023-01-17 15:05:59 +01:00
|
|
|
name: Unit Tests
|
|
|
|
on:
|
|
|
|
push:
|
2023-09-29 03:39:33 +02:00
|
|
|
branches: [main]
|
2023-01-17 15:05:59 +01:00
|
|
|
pull_request:
|
2023-09-29 03:39:33 +02:00
|
|
|
branches: [main]
|
2023-01-17 15:05:59 +01:00
|
|
|
jobs:
|
2023-10-11 12:57:12 +02:00
|
|
|
tests:
|
2023-01-17 15:05:59 +01:00
|
|
|
timeout-minutes: 60
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-11 12:57:12 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-29 03:39:33 +02:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-10-11 12:57:12 +02:00
|
|
|
node-version-file: '.nvmrc'
|
2023-09-29 03:39:33 +02:00
|
|
|
- name: Install dependencies
|
2023-10-11 12:57:12 +02:00
|
|
|
run: npm ci --legacy-peer-deps
|
2023-09-29 03:39:33 +02:00
|
|
|
- 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
|
|
|
|
run: npm run test --workspace=packages/bruno-schema
|
|
|
|
- name: Test Package bruno-app
|
|
|
|
run: npm run test --workspace=packages/bruno-app
|
|
|
|
- name: Test Package bruno-js
|
|
|
|
run: npm run test --workspace=packages/bruno-js
|
2023-09-29 02:58:25 +02:00
|
|
|
- name: Test Package bruno-cli
|
|
|
|
run: npm run test --workspace=packages/bruno-cli
|
2023-09-29 03:39:33 +02:00
|
|
|
- name: Test Package bruno-electron
|
|
|
|
run: npm run test --workspace=packages/bruno-electron
|
2023-10-11 12:57:12 +02:00
|
|
|
|
|
|
|
prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci --legacy-peer-deps
|
|
|
|
- name: Run Prettier
|
|
|
|
run: npm run test:prettier:web
|