Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 842c176

Browse files
author
uid10804
committed
ci(server): add workflow to build and test server package
1 parent 3e18da7 commit 842c176

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.txt]
17+
indent_style = tab
18+
indent_size = 4
19+
20+
[*.{diff,md}]
21+
trim_trailing_whitespace = false

.github/workflows/server.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: server
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
defaults:
13+
run:
14+
working-directory: packages/server
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '18.x'
22+
- name: Install Dependencies
23+
run: npm i
24+
- name: Build
25+
run: npm run build
26+
- name: Test
27+
run: npm test

0 commit comments

Comments
 (0)