diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8509a89 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Test Project + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + container: + image: node:20 + steps: + - uses: actions/checkout@v3 + with: + node-version: 20 + - run: npm ci + - run: npm test + - run: npm run build diff --git a/src/index.ts b/src/index.ts index 71ad74c..18d522e 100755 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import express from "express"; import cors from "cors"; import body from "body-parser"; -const app = express(); +const app = express() let server;