Skip to content

Commit 62b8ad9

Browse files
committed
refactor: actions
1 parent eab7011 commit 62b8ad9

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

.github/workflows/format.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Format"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
format:
10+
name: "Run ESLint"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run Prettier
25+
run: npm run format

.github/workflows/formatter.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/linter.yml renamed to .github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: "Linter"
1+
name: "Lint"
22

33
on:
44
pull_request:
55
push:
66
branches: [main]
77

88
jobs:
9-
eslint:
10-
name: "Eslint Check"
9+
lint:
10+
name: "Run ESLint"
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code

0 commit comments

Comments
 (0)