diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a223556..48a5f90 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,21 @@ name: Tests -on: push +on: + push: + branches-ignore: + - 'master' jobs: + units: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install modules + run: npm install + - name: Run tests + run: npm test -- -u + cypress-run: runs-on: ubuntu-latest steps: diff --git a/package.json b/package.json index 8707ec0..19df559 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,9 @@ }, "jest": { "preset": "jest-preset-angular", + "testMatch": [ + "/src/**/*.spec.ts" + ], "setupFilesAfterEnv": [ "/setup-jest.ts" ]