changelog: 5.16.0 #973
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: | |
branches: master | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rokroskar/[email protected] | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Установка yarn | |
id: yarn-setup | |
run: | | |
yarn policies set-version 1.22.18 | |
echo "::set-output name=cache_dir::$(yarn cache dir)" | |
- name: Настройка кэширования yarn | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-setup.outputs.cache_dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Установка зависимостей | |
run: yarn add "install-peers-cli@https://github.com/evless/install-peers-cli#fix-yarn-policies" && yarn --frozen-lockfile | |
- name: Проверка TS | |
run: yarn tsc --noEmit | |
- name: Unit тесты | |
run: yarn tsc --noEmit | |
- name: Проверка орфографии | |
run: yarn cspell --no-progress |