Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

env:
CI: true
REDOCLY_TELEMETRY: off

jobs:
latest-vs-next:
runs-on: ubuntu-latest
Expand All @@ -29,9 +33,6 @@ jobs:
- run: redocly --version
- name: Run Benchmark
run: hyperfine -i --warmup 3 'redocly lint packages/core/src/benchmark/benches/rebilly.yaml' 'redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml' --export-markdown benchmark_check.md --export-json benchmark_check.json
env:
CI: true
REDOCLY_TELEMETRY: off

- name: Comment PR
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Expand Down Expand Up @@ -67,9 +68,6 @@ jobs:
npm test # This command is generated and injected into package.json in the previous step.
cat benchmark_check.md
npm run chart # Creates benchmark_chart.md with the performance bar chart.
env:
CI: true
REDOCLY_TELEMETRY: off

- name: Comment PR
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-plugins.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Plugins smoke tests
name: Smoke tests

on:
pull_request:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/smoke-rebilly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Smoke tests

on:
pull_request:
types: [opened, synchronize, reopened]

env:
CI: true
REDOCLY_TELEMETRY: off

jobs:
run-smoke-rebilly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Rebilly smoke test
run: npm run smoke:rebilly
env:
SANDBOX_REBILLY_TOKEN: ${{ secrets.SANDBOX_REBILLY_TOKEN }}
14 changes: 5 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- main

env:
CI: true
REDOCLY_TELEMETRY: off

jobs:
build-and-unit:
runs-on: ubuntu-latest
Expand All @@ -18,17 +22,13 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci
env:
CI: true
- name: Typecheck
run: npm run typecheck
- name: Unit Tests
run: npm run unit
- name: E2E Tests
run: npm run e2e
env:
CI: true
SANDBOX_REBILLY_TOKEN: ${{ secrets.SANDBOX_REBILLY_TOKEN }}

cli-package-test:
runs-on: ubuntu-latest
steps:
Expand All @@ -39,8 +39,6 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci
env:
CI: true
- name: Prepare CLI and Core packages
run: npm run pack:prepare
- name: Install CLI Package
Expand Down Expand Up @@ -76,7 +74,5 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci
env:
CI: true
- run: npm run eslint
- run: npm run prettier:check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getParams, getCommandOutput, getFixturePath } from '../utils';
import { getParams, getCommandOutput, getFixturePath } from '../respect/utils';
import { join } from 'path';

test('rebilly test case', () => {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"coverage:cli": "npm run jest -- --roots packages/cli/src --coverage",
"coverage:core": "npm run jest -- --roots packages/core/src --coverage",
"coverage:respect-core": "npm run jest -- --roots packages/respect-core/src --coverage",
"typecheck": "tsc --noEmit --skipLibCheck",
"e2e": "npm run webpack-bundle -- --mode=none && REDOCLY_TELEMETRY=off NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --roots=./__tests__/",
"smoke:rebilly": "npm run webpack-bundle -- --mode=none && REDOCLY_TELEMETRY=off NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --roots=__tests__/smoke-rebilly/ --testMatch='**/rebilly.smoke.ts'",
"prettier": " npx prettier --write \"**/*.{ts,js,yaml,yml,json,md}\"",
"prettier:check": "npx prettier --check \"**/*.{ts,js,yaml,yml,json,md}\"",
"eslint": "eslint packages/**",
"clean": "rm -rf packages/**/lib packages/**/node_modules packages/**/*.tsbuildinfo package-lock.json node_modules dist && git checkout package-lock.json",
"watch": "tsc -b tsconfig.build.json --watch ",
"typecheck": "tsc --noEmit --skipLibCheck",
"watch": "npm run respect:parser:generate && tsc -b tsconfig.build.json --watch",
"compile": "npm run respect:parser:generate && tsc -b tsconfig.build.json",
"prepare": "npm run compile",
"cli": "ts-node packages/cli/src/index.ts",
Expand Down
6 changes: 0 additions & 6 deletions packages/respect-core/jest.config.unit.js

This file was deleted.

Loading