diff --git a/.github/workflows/run-unit.tests.yml b/.github/workflows/run-unit.tests.yml new file mode 100644 index 0000000..effba18 --- /dev/null +++ b/.github/workflows/run-unit.tests.yml @@ -0,0 +1,19 @@ +name: Run Unit Tests + +on: [push] + +jobs: + run-unit-tests: + name: Run Unit Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - run: npm ci + + - run: npm run test \ No newline at end of file diff --git a/package.json b/package.json index 160a6af..9bf5b19 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "gogym-api", + "type": "module", "version": "1.0.0", "description": "Application for registration and check-in at gyms", "main": "index.js",