From cc1452c7f63c88ad0606151320e1401b73ba238f Mon Sep 17 00:00:00 2001 From: theojungle Date: Sun, 11 Aug 2024 20:40:47 +0200 Subject: [PATCH] ci: add github action --- .github/workflows/tests.yml | 13 +++++++++++++ package.json | 1 + 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6ea8703 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,13 @@ +name: Tests + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install modules + run: yarn + - name: Run tests + run: yarn test:ci 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",