Update typescript.yml #531
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TypeScript | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up AdoptOpenJDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
java-package: 'jdk' | |
- name: Npm install | |
run: npm i --prefix src/Marsen.TypeScript.Dojo | |
- name: Run Cover | |
run: npm run cover --prefix src/Marsen.TypeScript.Dojo | |
- name: Setup Sonarqube | |
uses: warchant/setup-sonar-scanner@v3 | |
- name: Run Sonarqube | |
run: | | |
java -version # Verify Java version | |
-Dsonar.organization=marsen-github | |
-Dsonar.projectKey=Marsen.TypeScript.Dojo | |
-Dsonar.sources=./src/Marsen.TypeScript.Dojo/src | |
-Dsonar.host.url=https://sonarcloud.io | |
-Dsonar.login=$SONAR_TS_LOGIN | |
-Dsonar.typescript.lcov.reportPaths=src/Marsen.TypeScript.Dojo/coverage/lcov.info | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TS_LOGIN: ${{ secrets.SONAR_TS_LOGIN }} |