chore(deps): bump build dependencies like turbo & lerna #597
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: Tests | |
on: [push, pull_request] | |
env: | |
CI: true | |
jobs: | |
run: | |
name: Node ${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [18, 20] | |
os: [ubuntu-latest] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run test:ci | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '18') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# - name: Run Coveralls | |
# uses: coverallsapp/github-action@master | |
# if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '18') | |
# with: | |
# github-token: '${{ secrets.GITHUB_TOKEN }}' |