update workflows
This commit is contained in:
parent
45a210fdb5
commit
a03b385e55
13
.github/workflows/eslint.yaml
vendored
13
.github/workflows/eslint.yaml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: pull request
|
name: Linting
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
formatting:
|
formatting:
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@ -12,12 +10,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm i
|
run: yarn install
|
||||||
|
|
||||||
- name: Check Eslint
|
- name: Check Eslint
|
||||||
run: npm run eslint
|
run: yarn eslint
|
||||||
|
15
.github/workflows/formatting.yaml
vendored
15
.github/workflows/formatting.yaml
vendored
@ -1,10 +1,6 @@
|
|||||||
name: pull request
|
name: Formatting
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
formatting:
|
formatting:
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@ -12,12 +8,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm i
|
run: yarn Install
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: npm run format
|
run: yarn prettier --check .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user