diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..02cb73c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,13 @@ +name: Tests + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install modules + run: yarn + - name: Run tests + run: yarn jest diff --git a/package.json b/package.json index 2eefa11..38638ca 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "test": "jest --watchAll --coverage=false", "test:coverage": "jest", "test:e2e": "maestro test maestro/", + "test:ci": "jest --coverage=false --forceExit", "translate": "yarn extract-messages 'src/**/*.{tsx,ts}' -l en-US,fr-FR -o src/locales -d en-US --flat", "generate:api:types": "npx openapi-typescript https://developer.themoviedb.org/openapi/64542913e1f86100738e227f -o ./src/api/types.d.ts", "prepare": "husky",