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
7 changes: 5 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit/Integration Tests & Coverage
name: Build and Test

on:
pull_request:
Expand All @@ -20,7 +20,7 @@ jobs:
restore-keys: |
npm-${{ hashFiles('package-lock.json') }}
npm-
- name: Install modules
- name: Environments
run: |
echo
echo Using Node $(node -v), NPM $(npm -v)
Expand All @@ -31,10 +31,13 @@ jobs:
CI: true
- name: Typecheck
run: npm run typecheck
- name: Unit Tests
run: npm run jest -- --silent --ci --json --testLocationInResults --outputFile=report-incoming.json --bail --coverage
- name: Coverage Report
uses: artiomtr/jest-coverage-report-action@v2.0-rc.4
with:
skip-step: none
coverage-file: report-incoming.json
annotations: none
test-script: npm run jest -- --silent --ci --json --testLocationInResults --outputFile=report.json --bail --coverage
- name: E2E Tests
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Redocly CLI (fka OpenAPI CLI) toolbox with rich validation and bundling features.

![Travis (.org)](https://img.shields.io/travis/Redocly/redocly-cli/master)
![build and test](https://github.com/redocly/redocly-cli/actions/workflows/tests.yaml/badge.svg)
![npm (scoped)](https://img.shields.io/npm/v/@redocly/cli)
![NPM](https://img.shields.io/npm/l/@redocly/cli)

Expand Down Expand Up @@ -63,8 +63,8 @@ docker run --rm -v $PWD:/spec redocly/openapi-cli lint path-to-root-file.yaml
To build and run with a local image, run the following from the project root:

```
docker build -t openapi-cli .
docker run --rm -v $PWD:/spec openapi-cli lint path-to-root-file.yaml
docker build -t redocly-cli .
docker run --rm -v $PWD:/spec redocly-cli lint path-to-root-file.yaml
```

## [Read the docs](https://redocly.com/docs/cli/)
Expand Down