Skip to content

Fix Login code

Fix Login code #12

Workflow file for this run

name: CI
on: [push]
env:
CI: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
uses: inrupt/typescript-sdk-tools/.github/workflows/[email protected]
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x", "16.x", "14.x"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run test
# Upload coverage for sonarcube (only matching OS and one node version required)
- uses: actions/upload-artifact@v3
if: ${{ matrix.node-version == '18.x' }}
with:
name: code-coverage-ubuntu-latest-${{matrix.node-version}}
path: coverage/
sonar-scan:
needs: [test]
runs-on: ubuntu-latest
strategy:
matrix:
# Since this is a monorepo, the Sonar scan must be run on each of the packages but this will pull in the test
# coverage information produced by the tests already run.
project-root:
[
"packages/browser",
"packages/oidc-browser",
"packages/node",
"packages/core",
]
steps:
- uses: actions/checkout@v3
with:
# Sonar analysis needs the full history for features like automatic assignment of bugs. If the following step
# is not included the project will show a warning about incomplete information.
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: code-coverage-ubuntu-latest-18.x
path: coverage/
- name: SonarCloud Scan
uses: SonarSource/[email protected]
if: ${{ github.actor != 'dependabot[bot]' }}
with:
projectBaseDir: ${{ matrix.project-root }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}