-
-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 977 Bytes
/
frontend.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
40
41
42
43
44
45
46
47
48
name: frontend
on:
push:
branches:
- "*"
- "*/*"
pull_request:
branches:
- "*"
- "*/*"
jobs:
job_linting:
name: Linting
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: GitHub Action for Yarn
uses: borales/actions-yarn@v3
- name: Show environment information
run: |
yarn -v
- name: Get cache directory - Yarn
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies - Yarn
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ matrix.os }}-yarn-
- name: Install dependencies
run: |
sudo yarn install
- run: yarn run prettier-check
- run: yarn run lint