Skip to content

Merge pull request #20 from olibos/renovate/ghcr.io-hassio-addons-bas… #39

Merge pull request #20 from olibos/renovate/ghcr.io-hassio-addons-bas…

Merge pull request #20 from olibos/renovate/ghcr.io-hassio-addons-bas… #39

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
working-directory: src
run: bun install
- name: Build
working-directory: src
run: bun run build
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
projectBaseDir: src
args: >
-Dsonar.organization=olibos
-Dsonar.projectKey=olibos_ha-addon-pluxee
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}