Repository navigation
63 lines (52 loc) · 1.71 KB
/
Copy pathpull_request.yml
File metadata and controls
63 lines (52 loc) · 1.71 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Pull Request'
on: ['pull_request']
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Node setup
uses: ./.github/actions/node-setup
- run: yarn workspace @vkontakte/icons-sprite build
- uses: andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d # v1.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: packages/icons/
package_manager: yarn
# only affects current branch
skip_step: install
build_script: 'icons-build'
script: yarn run size-limit --json
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Node setup
uses: ./.github/actions/node-setup
- run: yarn test
check_dependencies:
runs-on: ubuntu-latest
name: Check dependencies
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Setup NodeJS
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: YARN_ENABLE_SCRIPTS=false yarn install --immutable --check-cache --check-resolutions
lint:
runs-on: ubuntu-latest
name: Check typo
steps:
- name: Checkout
uses: VKCOM/gh-actions/shared/spell-checker-filename@main
with:
token: ${{ secrets.GITHUB_TOKEN }}