diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..6d8f38c --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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 diff --git a/tests/integration/api/v1/status/get.test.js b/tests/integration/api/v1/status/get.test.js index 26c9826..37b21da 100644 --- a/tests/integration/api/v1/status/get.test.js +++ b/tests/integration/api/v1/status/get.test.js @@ -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);