mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
fix: yarn smoke tests (#1185)
This commit is contained in:
3
.github/workflows/performance.yaml
vendored
3
.github/workflows/performance.yaml
vendored
@@ -28,9 +28,10 @@ jobs:
|
||||
- run: redocly-next --version
|
||||
- run: redocly --version
|
||||
- name: Run Benchmark
|
||||
run: hyperfine -i --warmup 3 'REDOCLY_TELEMETRY=off redocly lint packages/core/src/benchmark/benches/rebilly.yaml' 'REDOCLY_TELEMETRY=off redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml' --export-markdown benchmark_check.md --export-json benchmark_check.json
|
||||
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
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
|
||||
18
.github/workflows/smoke.yaml
vendored
18
.github/workflows/smoke.yaml
vendored
@@ -167,7 +167,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli-clean.tgz" "yarn" # FIXME: Use actual openapi-core
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
|
||||
|
||||
run-smoke--yarn--node-20--redoc:
|
||||
needs: prepare-smoke
|
||||
@@ -180,7 +180,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli-clean.tgz" "yarn" # FIXME: Use actual openapi-core
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn"
|
||||
|
||||
run-smoke--yarn--node-18:
|
||||
needs: prepare-smoke
|
||||
@@ -193,7 +193,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli-clean.tgz" "yarn" # FIXME: Use actual openapi-core
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
|
||||
|
||||
run-smoke--yarn--node-18--redoc:
|
||||
needs: prepare-smoke
|
||||
@@ -206,7 +206,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli-clean.tgz" "yarn" # FIXME: Use actual openapi-core
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add redoc ./redocly-cli.tgz" "yarn"
|
||||
|
||||
run-smoke--webpack--node-14:
|
||||
needs: prepare-smoke
|
||||
@@ -251,18 +251,12 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli-clean.tgz" "yarn" # FIXME: Use actual openapi-core
|
||||
- run: bash ./__tests__/smoke/run-smoke.sh "yarn add ./redocly-cli.tgz" "yarn"
|
||||
|
||||
run-docker-image:
|
||||
needs: prepare-smoke
|
||||
run-smoke--docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test Docker Image
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: __tests__/smoke
|
||||
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
- name: Build docker image
|
||||
run: docker build -t redocly/cli:latest .
|
||||
- name: Run docker image
|
||||
|
||||
Reference in New Issue
Block a user