domjtalbot/nx-mesh

View on GitHub
.github/workflows/code-analysis.yml

Summary

Maintainability
Test Coverage
name: 'Code Analysis'

on:
  workflow_call:
    secrets:
      NX__TRIPPIN__API_KEY:
        description: 'The Trippin API Key'
        required: true
      NX_CLOUD_ACCESS_TOKEN:
        description: 'The NX Cloud API token'
        required: true

  workflow_dispatch:

concurrency:
  group: code-analysis-${{ github.workflow }}-${{ github.ref }}

env:
  NX__TRIPPIN__API_KEY: ${{ secrets.NX__TRIPPIN__API_KEY }}
  NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
  codeql:
    name: CodeQL
    uses: ./.github/workflows/__code-analysis--codeql.yml
    secrets: inherit

  sonar:
    name: Sonar
    uses: ./.github/workflows/__code-analysis--sonar.yml
    secrets: inherit