Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
[lib] Add tests (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijonson committed Aug 2, 2023
1 parent f27f352 commit 3038404
Show file tree
Hide file tree
Showing 12 changed files with 4,484 additions and 1,806 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Develop Check
on:
push:
branches:
- 'develop'
- "develop"

jobs:
test-build:
develop_check:
name: Develop Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -16,4 +17,7 @@ jobs:
run: npm install

- name: Build code
run: npm run build
run: npm run build

- name: Run tests
run: npm run test
14 changes: 11 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ name: Pull Request Check
on:
pull_request:
branches:
- '**'
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
test-pr:
pr_check:
name: PR Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -16,4 +21,7 @@ jobs:
run: npm install

- name: Build code
run: npm run build
run: npm run build

- name: Run tests
run: npm run test
42 changes: 42 additions & 0 deletions gpt-turbo.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"folders": [
{
"name": "lib",
"path": "packages/lib"
},
{
"name": "web",
"path": "packages/implementations/web"
},
{
"name": "stats",
"path": "packages/plugins/gpt-turbo-plugin-stats"
},
{
"name": "discord",
"path": "packages/implementations/discord"
},
{
"name": "cli",
"path": "packages/implementations/cli"
},
{
"name": "nest",
"path": "packages/implementations/nest"
},
{
"name": "root",
"path": "."
}
],
"settings": {
"jest.disabledWorkspaceFolders": [
"web",
"discord",
"stats",
"nest",
"cli",
"root"
]
}
}
Loading

0 comments on commit 3038404

Please sign in to comment.