Skip to content

Commit

Permalink
adds 'Automated Tests' 'Github Actions'
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Pereira committed Jan 10, 2025
1 parent 54c6adf commit 85a2a14
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Automated Tests

on: pull_request

jobs:
jest:
name: Jest Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "18.20"

- run: npm ci

- run: npm test
2 changes: 1 addition & 1 deletion tests/integration/api/v1/status/get.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test("GET to /api/v1/status should return 200", async () => {
responseBody.dependencies.database.version,
).split(".");
const databaseMajorVersion = databaseVersion[0];
expect(databaseMajorVersion).toEqual("16");
expect(databaseMajorVersion).toEqual("20");

expect(responseBody.dependencies.database.max_connections).toEqual(100);
expect(responseBody.dependencies.database.opened_connections).toEqual(1);
Expand Down

0 comments on commit 85a2a14

Please sign in to comment.