From 26db4e825903fe47e083d04e2d271f0eabc4a2a7 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 19 Jun 2022 23:24:48 +0800 Subject: [PATCH] build: add UT to CI --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7075e7..32d14bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Cache deps + - name: Cache Dependencies uses: actions/cache@v1 id: yarn-cache with: @@ -38,7 +38,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - name: Install deps + - name: Install Dependencies env: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true run: | @@ -48,7 +48,11 @@ jobs: run: | make build - - name: Test + - name: Unit Test + run: | + yarn jest src + + - name: E2E Test uses: mujo-code/puppeteer-headful@master env: CI: 'true'