fix: move publish test coverage to separate job. feat: add format job.

This commit is contained in:
Stevan Freeborn
2023-02-20 11:31:16 -06:00
parent ab32a83840
commit 604d7430e8
2 changed files with 24 additions and 1 deletions
+21 -1
View File
@@ -37,7 +37,7 @@ jobs:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install
- name: Run test-coverage and tests - name: Run test coverage and tests
run: npm run test-coverage run: npm run test-coverage
env: env:
API_BASE_URL: ${{ vars.API_BASE_URL }} API_BASE_URL: ${{ vars.API_BASE_URL }}
@@ -69,5 +69,25 @@ jobs:
TEST_SURVEY_ID: ${{ vars.TEST_SURVEY_ID }} TEST_SURVEY_ID: ${{ vars.TEST_SURVEY_ID }}
TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }} TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }}
TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }} TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }}
publish_test_coverage:
steps:
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
format:
name: format
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Run format
run: npm run format
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
commit: --no-verify
+3
View File
@@ -1,3 +1,6 @@
# Onspring API Javascript SDK # Onspring API Javascript SDK
[![lint_test_format](https://github.com/StevanFreeborn/onspring-api-sdk-javascript/actions/workflows/lint_test_format.yaml/badge.svg)](https://github.com/StevanFreeborn/onspring-api-sdk-javascript/actions/workflows/lint_test_format.yaml)
[![codecov](https://codecov.io/github/StevanFreeborn/onspring-api-sdk-javascript/branch/master/graph/badge.svg?token=G1L3GKE0LV)](https://codecov.io/github/StevanFreeborn/onspring-api-sdk-javascript)
A javascript SDK for interacting with version 2 of the Onspring API. A javascript SDK for interacting with version 2 of the Onspring API.