-
Notifications
You must be signed in to change notification settings - Fork 51
44 lines (42 loc) · 1008 Bytes
/
ESLintFormat.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
name: Format Validation (ESLint)
on:
workflow_dispatch: {}
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
runFormatValidationScript:
name: Run ESLint Format Validation
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: JavaScript Setup
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install Dependencies
run: |
cd fission
npm install
- name: Linter
id: linter-validation
run: |
cd fission
npm run lint
continue-on-error: true
- name: Prettier
id: prettier-validation
run: |
cd fission
npm run prettier
continue-on-error: true
- name: Check Success
run: |
if [ ${{ steps.linter-validation.outcome }} == "success" ]; then
echo "Format Validation Passed"
else
echo "Format Validation Failed"
exit 1
fi