Skip to content

Commit 0cfc690

Browse files
committed
add github action for frontend
Signed-off-by: Josh Hootman <[email protected]>
1 parent 70117a1 commit 0cfc690

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/frontend-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: UnityAuth Frontend CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
UnityAuth-Frontend-CI:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# setup node
12+
- uses: actions/checkout@v3
13+
- name: Use Node.js 18.18.0
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 18.18.0
17+
# install dependencies
18+
- name: Install Dependencies
19+
run: npm ci
20+
working-directory: ./frontend
21+
# run prettier
22+
- name: Check formatting with Prettier
23+
run: npx prettier . --check
24+
working-directory: ./frontend
25+
# run linter
26+
- name: Lint project with Eslint
27+
run: npx eslint .
28+
working-directory: ./frontend
29+
# run svelte check
30+
- name: Run Svelte Check
31+
run: npm run check
32+
working-directory: ./frontend
33+
# run unit tests
34+
- name: Run unit tests
35+
run: npm run test:unit
36+
working-directory: ./frontend

0 commit comments

Comments
 (0)