Skip to content

check builtin files extensions #161

check builtin files extensions

check builtin files extensions #161

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: CI
strategy:
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build
shell: bash
run: |
npm ci
npm run langium:generate:production
npm run build
- name: Test
if: success() || failure()
shell: bash
run: |
npm run coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
# Additional arguments for the sonarcloud scanner
args:
-Dsonar.projectKey=ydaveluy_xsmp-modeler
-Dsonar.organization=ydaveluy
-Dsonar.sources=src/
-Dsonar.exclusions=src/language/generated/*,out/**
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.coverage.exclusions=**/*.test.*
-Dsonar.tests=test/
-Dsonar.links.scm=https://github.com/ydaveluy/xsmp-modeler
-Dsonar.links.issue=https://github.com/ydaveluy/xsmp-modeler/issues