Skip to content

Commit 9a563a4

Browse files
committed
add frontend github actions
1 parent 75f562a commit 9a563a4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/frontend.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Front-End CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: frontend
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '20'
19+
cache: 'yarn'
20+
21+
- name: Install dependencies
22+
run: yarn install —immutable
23+
24+
- name: Run formatter
25+
run: yarn format
26+
27+
- name: Run linter
28+
run: yarn lint
29+
30+
- name: Run tests
31+
run: yarn test

0 commit comments

Comments
 (0)