-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 961 Bytes
/
lint-code.yml
File metadata and controls
39 lines (31 loc) · 961 Bytes
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: Lint Code
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
lint-code:
name: Lint Code
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: List LFS Objects
shell: bash
run: git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS Cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
shell: bash
run: git lfs pull
- name: Initialize Yarn
shell: bash
run: yarn
- name: Lint Code
shell: bash
run: yarn run lint:code