diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4bc8f0ce65..7da3bf0f0e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,4 @@ -name: Unit/Integration Tests & Coverage +name: Build and Test on: pull_request: @@ -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) @@ -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 diff --git a/README.md b/README.md index 80594bda97..9976dc16cd 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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/)