Skip to content

Commit 97628b3

Browse files
committed
update v1
1 parent 88ae7c6 commit 97628b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+11548
-2554
lines changed

.github/workflows/node.js.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '22.x'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- run: npm ci
30+
31+
- name: Build with Webpack
32+
run: npm run build
33+
34+
- name: Run tests
35+
run: npm test
36+
env:
37+
PRODUCTION: false
38+
BASE_URL: http://127.0.0.1:3000
39+
PORT: 3000
40+
CORS_LIST: http://localhost:4200
41+
JWT_SECRET: ${{ secrets.JWT_SECRET }}
42+
JWT_PUBLICKEY_PATH: ${{ secrets.JWT_PUBLICKEY_PATH }}
43+
JWT_PRIVATEKEY_PATH: ${{ secrets.JWT_PRIVATEKEY_PATH }}
44+
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
45+
PG_CONNECT: ${{ secrets.PG_CONNECT }}
46+
MAIL_HOST: ${{ secrets.MAIL_HOST }}
47+
MAIL_PORT: ${{ secrets.MAIL_PORT }}
48+
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
49+
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
50+
51+
- name: Upload coverage reports to Codecov
52+
uses: codecov/[email protected]
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
56+
- name: Upload test results to Codecov
57+
if: ${{ !cancelled() }}
58+
uses: codecov/test-results-action@v1
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
config/index.json
21
.directory
32
node_modules
43
TODO.md
5-
.vscode
4+
.vscode
5+
.env
6+
key
7+
dist
8+
coverage

0 commit comments

Comments
 (0)