Skip to content

Commit afead47

Browse files
committed
chore: GH actions for linting files on push to feature branches
1 parent 4e76c92 commit afead47

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint Files
2+
3+
# This workflow lints the client and server directories
4+
# And will trigger on push *any* branch
5+
on:
6+
push:
7+
branches-ignore:
8+
- master
9+
- dev
10+
11+
jobs:
12+
lint-client:
13+
name: Lint Client
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout the repository
17+
uses: actions/checkout@v3
18+
19+
- name: Use NodeJS v18.14.2
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18.14.2
23+
24+
- name: Install Dependencies and Lint
25+
run: |
26+
cd client
27+
npm install
28+
npm run lint

0 commit comments

Comments
 (0)