From e909ff5ad09948b3c5a308a1141addb6d805b69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 26 Oct 2022 10:48:04 +0200 Subject: [PATCH] Add jest workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- .github/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..161557d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,18 @@ +name: Run jest tests +on: + pull_request: {} +jobs: + jest: + name: Run jest tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Yarn cache + uses: actions/setup-node@v3 + with: + cache: "yarn" + - name: Install dependencies + run: "yarn install" + - name: Jest + run: "yarn run test"