Skip to content

chore: bumping dependencies (#13) #33

chore: bumping dependencies (#13)

chore: bumping dependencies (#13) #33

Workflow file for this run

name: tests and sonarcloud scan
on:
push:
branches:
- main
pull_request:
types: [opened, ready_for_review, synchronize, converted_to_draft]
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out repository code
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching node_modules
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- name: Setting yarn version
run: yarn policies set-version 1.22.19
- name: Install dependencies
run: yarn install --prefer-offline
- name: Linting
run: yarn lint
- name: Types check
run: yarn type-check
- name: Tests
run: yarn test:ci
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}