-
-
Notifications
You must be signed in to change notification settings - Fork 61
81 lines (68 loc) · 2.24 KB
/
eslint.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Eslint
on:
pull_request:
branches: [ draftbot-v5 ]
jobs:
eslint-discord-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'
# Install and cache dependencies for the Discord subproject
- name: Cache Discord dependencies
uses: actions/cache@v3
with:
path: ./Discord/node_modules
key: ${{ runner.os }}-discord-dependencies-${{ hashFiles('./Discord/yarn.lock') }}
- name: Install dependencies and Run ESLint in Discord folder
working-directory: ./Discord
run: |
yarn install
yarn eslint
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'
# Repeat the caching step and ESLint check for the Lib subproject
- name: Cache Lib dependencies
uses: actions/cache@v3
with:
path: ./Lib/node_modules
key: ${{ runner.os }}-lib-dependencies-${{ hashFiles('./Lib/yarn.lock') }}
- name: Install dependencies and Run ESLint in Lib folder
working-directory: ./Lib
run: |
yarn install
yarn eslint
eslint-core-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'
# Repeat the caching step and ESLint check for the Core subproject
- name: Cache Core dependencies
uses: actions/cache@v3
with:
path: ./Core/node_modules
key: ${{ runner.os }}-core-dependencies-${{ hashFiles('./Core/yarn.lock') }}
- name: Install dependencies and Run ESLint in Core folder
working-directory: ./Core
run: |
yarn install
yarn eslint