-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.1 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: 16
- 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 --frozen-lockfile
- name: Тесты
run: yarn test