Skip to content

Commit 8d08a4d

Browse files
committed
Code check workflows
1 parent 19c07c2 commit 8d08a4d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: lint
2+
run-name: Installs project and runs linting
3+
on: [ push, pull_request ]
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node: [ 16, 18 ]
10+
name: Linting on Ubuntu with Node ${{ matrix.node }}
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node }}
16+
cache: 'npm'
17+
- run: yarn install
18+
- run: yarn lint

.github/workflows/prettier.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: prettier
2+
run-name: Installs project and runs prettier checks
3+
on: [ push, pull_request ]
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node: [ 16, 18 ]
10+
name: Prettier on Ubuntu with Node ${{ matrix.node }}
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node }}
16+
cache: 'npm'
17+
- run: yarn install
18+
- run: yarn format

0 commit comments

Comments
 (0)