-
-
Notifications
You must be signed in to change notification settings - Fork 221
35 lines (32 loc) · 946 Bytes
/
lint.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
name: Lint
on:
push:
branches:
- master
- main
pull_request:
jobs:
getNodeVersion:
uses: calyptia/.github/.github/workflows/get_node_version.yml@main
lint:
name: Lints Britecharts
runs-on: ubuntu-latest
needs: getNodeVersion
steps:
- uses: actions/checkout@v2
- name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }}
uses: actions/setup-node@v2
with:
node-version: '${{ needs.getNodeVersion.outputs.node_version }}'
- name: Use Yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: '.yarn/cache'
key: ${{ runner.os }}-yarn-${{ needs.getNodeVersion.outputs.node_version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Linting Styles 🌈
run: yarn lint:styles
- name: Linting Code 🗃
run: yarn lint:js