Skip to content

Commit 303c35f

Browse files
committed
chore: move rebilly test to a smoke
1 parent 3b5ea04 commit 303c35f

File tree

9 files changed

+37
-24
lines changed

9 files changed

+37
-24
lines changed

.github/workflows/performance.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
env:
9+
CI: true
10+
REDOCLY_TELEMETRY: off
11+
812
jobs:
913
latest-vs-next:
1014
runs-on: ubuntu-latest
@@ -29,9 +33,6 @@ jobs:
2933
- run: redocly --version
3034
- name: Run Benchmark
3135
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
32-
env:
33-
CI: true
34-
REDOCLY_TELEMETRY: off
3536

3637
- name: Comment PR
3738
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
@@ -67,9 +68,6 @@ jobs:
6768
npm test # This command is generated and injected into package.json in the previous step.
6869
cat benchmark_check.md
6970
npm run chart # Creates benchmark_chart.md with the performance bar chart.
70-
env:
71-
CI: true
72-
REDOCLY_TELEMETRY: off
7371
7472
- name: Comment PR
7573
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Smoke tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
env:
8+
CI: true
9+
REDOCLY_TELEMETRY: off
10+
11+
jobs:
12+
prepare-smoke:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 22
19+
cache: 'npm'
20+
- name: Install dependencies
21+
run: npm ci
22+
- run: npm run smoke:rebilly
23+
env:
24+
SANDBOX_REBILLY_TOKEN: ${{ secrets.SANDBOX_REBILLY_TOKEN }}

.github/workflows/tests.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- main
99

10+
env:
11+
CI: true
12+
REDOCLY_TELEMETRY: off
13+
1014
jobs:
1115
build-and-unit:
1216
runs-on: ubuntu-latest
@@ -18,17 +22,13 @@ jobs:
1822
cache: 'npm'
1923
- name: Install dependencies
2024
run: npm ci
21-
env:
22-
CI: true
2325
- name: Typecheck
2426
run: npm run typecheck
2527
- name: Unit Tests
2628
run: npm run unit
2729
- name: E2E Tests
2830
run: npm run e2e
29-
env:
30-
CI: true
31-
SANDBOX_REBILLY_TOKEN: ${{ secrets.SANDBOX_REBILLY_TOKEN }}
31+
3232
cli-package-test:
3333
runs-on: ubuntu-latest
3434
steps:
@@ -39,8 +39,6 @@ jobs:
3939
cache: 'npm'
4040
- name: Install dependencies
4141
run: npm ci
42-
env:
43-
CI: true
4442
- name: Prepare CLI and Core packages
4543
run: npm run pack:prepare
4644
- name: Install CLI Package
@@ -76,7 +74,5 @@ jobs:
7674
cache: 'npm'
7775
- name: Install dependencies
7876
run: npm ci
79-
env:
80-
CI: true
8177
- run: npm run eslint
8278
- run: npm run prettier:check

__tests__/respect/rebilly/__snapshots__/rebilly.test.ts.snap renamed to __tests__/smoke-rebilly/__snapshots__/rebilly.smoke.ts.snap

File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getParams, getCommandOutput, getFixturePath } from '../utils';
1+
import { getParams, getCommandOutput, getFixturePath } from '../respect/utils';
22
import { join } from 'path';
33

44
test('rebilly test case', () => {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
"coverage:cli": "npm run jest -- --roots packages/cli/src --coverage",
1717
"coverage:core": "npm run jest -- --roots packages/core/src --coverage",
1818
"coverage:respect-core": "npm run jest -- --roots packages/respect-core/src --coverage",
19-
"typecheck": "tsc --noEmit --skipLibCheck",
2019
"e2e": "npm run webpack-bundle -- --mode=none && REDOCLY_TELEMETRY=off NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --roots=./__tests__/",
20+
"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'",
2121
"prettier": " npx prettier --write \"**/*.{ts,js,yaml,yml,json,md}\"",
2222
"prettier:check": "npx prettier --check \"**/*.{ts,js,yaml,yml,json,md}\"",
2323
"eslint": "eslint packages/**",
2424
"clean": "rm -rf packages/**/lib packages/**/node_modules packages/**/*.tsbuildinfo package-lock.json node_modules dist && git checkout package-lock.json",
25-
"watch": "tsc -b tsconfig.build.json --watch ",
25+
"typecheck": "tsc --noEmit --skipLibCheck",
26+
"watch": "npm run respect:parser:generate && tsc -b tsconfig.build.json --watch",
2627
"compile": "npm run respect:parser:generate && tsc -b tsconfig.build.json",
2728
"prepare": "npm run compile",
2829
"cli": "ts-node packages/cli/src/index.ts",

packages/respect-core/jest.config.unit.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)