Skip to content

Allow passing axios default config to api constructor and timeout to … #20

Allow passing axios default config to api constructor and timeout to …

Allow passing axios default config to api constructor and timeout to … #20

Workflow file for this run

name: CI
on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-yarn-dependencies
lint:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-yarn-dependencies
- run: yarn lint
test:
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-yarn-dependencies
- run: yarn test --ci --forceExit --detectOpenHandles
- uses: actions/upload-artifact@v3
with:
name: reports
path: reports/
sonar:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting.
fetch-depth: 0
# Triggering SonarQube analysis as results of it are required by Quality Gate check.
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# Check the Quality Gate status.
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
# Force to fail step after specific time.
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}