github workflow
This commit is contained in:
parent
441983b8ae
commit
8bacda27a9
23
.github/workflows/eslint.yaml
vendored
Normal file
23
.github/workflows/eslint.yaml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: pull request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
formatting:
|
||||||
|
timeout-minutes: 15
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Check Eslint
|
||||||
|
run: npx eslint .
|
23
.github/workflows/formatting.yaml
vendored
Normal file
23
.github/workflows/formatting.yaml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: pull request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
formatting:
|
||||||
|
timeout-minutes: 15
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Check Formatting
|
||||||
|
run: npx prettier --check .
|
Loading…
x
Reference in New Issue
Block a user