This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Fix Fyle redirection url (#310) #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov Report Upload | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [labeled] | |
jobs: | |
unit-test: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: TypeScript Lint GitHub Action | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.13 | |
- name: Install dependencies | |
run: npm install | |
- name: Test | |
run: npm run unit_test_ci | |
env: | |
FYLE_CLIENT_ID: ${{secrets.FYLE_CLIENT_ID}} | |
CALLBACK_URL: ${{secrets.CALLBACK_URL}} | |
API_URL: ${{secrets.API_URL}} | |
APP_URL: ${{secrets.APP_URL}} | |
QBO_CLIENT_ID: ${{secrets.QBO_CLIENT_ID}} | |
QBO_SCOPE: ${{secrets.QBO_SCOPE}} | |
QBO_AUTHORIZE_URI: ${{secrets.QBO_AUTHORIZE_URI}} | |
QBO_APP_URL: ${{secrets.QBO_APP_URL}} | |
SENTRY_DSN: ${{secrets.SENTRY_DSN}} | |
RELEASE: ${{secrets.RELEASE}} | |
FYLE_APP_URL: ${{secrets.FYLE_APP_URL}} | |
TESTS_WORKSPACEID: ${{secrets.TESTS_WORKSPACEID}} | |
- name: Unit Test Coverage | |
uses: fylein/comment-test-coverage@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
path: coverage/coverage-summary.json | |
title: Unit Test Coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |