Modernized Stack #698
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: Build SignumJS | |
on: [ push, pull_request ] | |
jobs: | |
build-signumjs: | |
name: Test and Build SignumJS | |
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: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install turbo | |
run: npm install turbo -g | |
- name: Install Deps | |
run: npm ci | |
- name: Compile and Bundle SignumJS packages | |
run: npm run bundle | |
- name: Test SignumJS packages | |
run: npm run test:ci | |
- name: fix code coverage paths | |
working-directory: ./coverage | |
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |