-
-
Notifications
You must be signed in to change notification settings - Fork 61
41 lines (36 loc) · 948 Bytes
/
lib-module.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
name: Lib module
on:
pull_request:
branches:
- draftbot-v5
paths:
- Lib/**
jobs:
eslint-lib-module:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
# Setup Node.js environment once for all jobs
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '18'
# Setup Yarn stable
- name: Setup Yarn
run: |
corepack enable
yarn set version stable
# Cache Yarn dependencies
- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: |
./Lib/.yarn/cache
./Lib/.pnp.cjs
key: ${{ runner.os }}-yarn-${{ hashFiles('./Lib/yarn.lock') }}
- name: Install dependencies and Run ESLint in Lib folder
working-directory: ./Lib
run: |
yarn install
yarn eslint