diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml new file mode 100644 index 000000000..20981b167 --- /dev/null +++ b/.github/workflows/run-unit-tests.yml @@ -0,0 +1,34 @@ +name: Run unit tests + +on: + push: + branches: ['master'] + pull_request: + branches: ['master'] + +jobs: + + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + + permissions: + contents: write + steps: + - name: "Checkout source code" + uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install library deps + working-directory: ./Frontend/library + run: npm ci + + - name: Run frontend lib tests + working-directory: ./Frontend/library + run: npm run test