Skip to content

Commit

Permalink
[TEMP] #123, repair test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Sep 3, 2024
1 parent 0eca482 commit 137c0ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ jobs:
USER_TEST: ${{ secrets.USER_TEST }}

steps:
- name: Step 1 - Echo out a GitHub Actions Secret to the logs
run: |
echo ${{secrets.KEY}} | sed 's/./& /g'
echo ${{secrets.USER_TEST}} | sed 's/./& /g'
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- run: echo "NODE_ENV = $NODE_ENV"
- run: echo "NODE_ENV = $NODE_ENV"
- run: npm ci
- run: npm run build --if-present
- name: Start server
Expand Down
2 changes: 2 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ app.use(error.handler);
// init server
const server = app.listen(80, () => {
logger.log(`Server running //localhost:80, ENV: ${process.env.NODE_ENV}`, true);
logger.log(`KEY: ${process.env.KEY}`, true);
logger.log(`USER_TEST: ${process.env.USER_TEST}`, true);
});

// scheduled cleanup
Expand Down

0 comments on commit 137c0ee

Please sign in to comment.