diff --git a/content/.github/workflows/unit-test.yml b/content/.github/workflows/unit-test.yml new file mode 100644 index 00000000..88937781 --- /dev/null +++ b/content/.github/workflows/unit-test.yml @@ -0,0 +1,23 @@ +name: Unit Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout respository + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + - run: npm ci + name: Install modules from npm + - run: npm run build + name: Build the application + - run: npm test + name: Run the tests \ No newline at end of file