From 60d89926145a55dddc522d4b7a9c0e4fd075867c Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Mon, 1 Feb 2021 21:20:03 +0100 Subject: [PATCH] Remove unnecessary quotes from yaml --- .github/workflows/ci.yml | 12 ++++++------ README.md | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index deea83c..b716ee1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: jobs: build-test: - name: 'Build & Test' + name: Build & Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -19,10 +19,10 @@ jobs: - run: npm run format-check - run: npm run lint - run: npm test - - name: 'Evaluate test results' - if: always() + - name: Create test report + if: success() || failure() uses: ./ with: - name: 'JEST Tests' - path: '__tests__/__results__/*.xml' - reporter: 'jest-junit' + name: JEST Tests + path: __tests__/__results__/*.xml + reporter: jest-junit diff --git a/README.md b/README.md index 0b877ff..4c8c07f 100644 --- a/README.md +++ b/README.md @@ -28,20 +28,20 @@ Please create [Issue](https://github.com/dorny/test-reporter/issues/new) or cont ```yaml jobs: build-test: - name: 'Build & Test' + name: Build & Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 # checkout the repo - run: npm ci # install packages - run: npm test # run tests (configured to use jest-junit reporter) - - name: 'Test Report' + - name: Test Report uses: dorny/test-reporter@v1 if: success() || failure() # run this step even if previous step failed with: - name: 'JEST Tests' # Name of the check run which will be created - path: 'reports/jest-*.xml' # Path to test report - reporter: 'jest-junit' # Format of test report + name: JEST Tests # Name of the check run which will be created + path: reports/jest-*.xml # Path to test report + reporter: jest-junit # Format of test report ``` ## Usage