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:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
timeout-minutes: 15
|
||||
@ -12,12 +10,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
run: yarn install
|
||||
- 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:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
timeout-minutes: 15
|
||||
@ -12,12 +8,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
run: yarn Install
|
||||
- name: Check Formatting
|
||||
run: npm run format
|
||||
run: yarn prettier --check .
|
||||
|
Loading…
x
Reference in New Issue
Block a user