chore: update colorjs.io #102
Workflow file for this run
This file contains hidden or 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: Test and lint | |
| on: push | |
| jobs: | |
| test: | |
| name: Run all tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '16.x' | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| - name: Test | |
| run: yarn test | |
| unit-test-and-sonar: | |
| name: Unit tests and coverage for sonar | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '16.x' | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| - name: Test | |
| run: yarn test:unit --coverage | |
| - name: Setup Sonar Scanner | |
| uses: warchant/setup-sonar-scanner@v3 | |
| - name: Run sonarqube | |
| env: | |
| # to get access to secrets.SONAR_TOKEN, provide GITHUB_TOKEN | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: sonar-scanner | |
| -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
| -Dsonar.host.url=https://sonarcloud.io/ |