Release 2.0.0 #15
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: PR Test Build | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm i --legacy-peer-deps | |
- name: Lint | |
run: npm run lint | |
# - name: Check spelling | |
# run: npm run spell | |
# | |
# - name: Test | |
# run: npm run test | |
- name: Build | |
run: npm run build | |
# - name: Edit Path | |
# run: | | |
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | |
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | |
# - name: SonarCloud scan | |
# uses: SonarSource/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |